Latest

Monday, July 10, 2017

laravel policy on db collection does not work

Asked by: Mahen Nakar


I am working on api. I am update to use laravel policy for single records but if I want to apply policy on all() or where(), i need to pass first record to policy which might create access problem.

Is there any better way to handle policy for collections



Source

No comments:

Post a Comment

Adbox