Skip to content

Commit

Permalink
Update ApiController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Sep 22, 2020
1 parent 88d161a commit 0de31c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Http/Controllers/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function index(Request $request): array
public function store(FormRequest $request): JsonResponse
{
$model = File::create($request->validated());
$model->load('children');

return response()->json(compact('model'));
}
Expand Down

0 comments on commit 0de31c1

Please sign in to comment.