This commit is contained in:
Maxime 2024-12-01 16:03:43 +01:00
parent 6edb16ccbf
commit f8804fc651
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ class PilotServiceProvider extends ServiceProvider
abort(403);
}
$output = $this->pilot->handle($request->all(), $request->files->all());
$output = $this->pilot->handle($request->all(), $request->allFiles());
if (isset($output['json'])) {
return response()->json($output['json']);

View File

@ -53,8 +53,8 @@ class Pilot
public function handle($data = [], $files = [])
{
$type = $data['type'] ?? null;
$slug = $data['slug'] ?? null;
$type = $data['_type'] ?? null;
$slug = $data['_slug'] ?? null;
if (isset($this->registry[$type]) && isset($this->registry[$type][$slug])) {
$params = $this->resolveDependencies($slug, $this->registry[$type][$slug], $data, $files);