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
awcodes9mo ago
Sounds like it should be a gate instead of a policy.
Want results from more Discord servers?
Add your server