How do I run this function once for all policies?

public function before($user, $ability) { if ($user->role->id <= 2) { return true; } return true; }
1 Reply
awcodes
awcodes12mo ago
Sounds like it should be a gate instead of a policy.

Did you find this page helpful?