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
Sounds like it should be a gate instead of a policy.