Closed Uceef94 closed 2 years ago
in case someone had the same issue you can resolve it by overriding the method paginateQuery() in your resource and do your logic there.
public function paginationQuery(ResourceRequest $request, Model $model): Builder
{
return $model->query();
}
Hello,
I'm using this package with policies and everything works fine, except that everyone can see the data on table of the resource. Does anyone knows how to let users see only their own data?