fix keys
This commit is contained in:
parent
6edb16ccbf
commit
f8804fc651
|
@ -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']);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue