How to configure a resource to only list the records of the authenticated user?
Title
Solution:Jump to solution
->modifyQueryUsing(function (Builder $query) {
$query->where('patient_id', auth()->id());...
2 Replies
Solution
->modifyQueryUsing(function (Builder $query) {
$query->where('patient_id', auth()->id());