Skip to content

Commit

Permalink
Ignores resolve fields before find chain field
Browse files Browse the repository at this point in the history
  • Loading branch information
zareismail committed Nov 13, 2020
1 parent 25a8b64 commit 9b418e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Http/Controllers/ChainFieldController.php
Expand Up @@ -22,12 +22,11 @@ public function handle(NovaRequest $request)
return $resource
->availableFields($request)
->authorized($request)
->resolve($resource)
->findFieldByAttribute($request->field, function () {
abort(response()->json([]));
})
->resolveFields($request)
->each->resolve($resource)
->authorized($request);
}
}
}

0 comments on commit 9b418e1

Please sign in to comment.