islamrumon/laravel-acl
Laravel ACL provides database-backed roles, groups, and permissions for Laravel 5.8+. Note: unmaintained since Jan 2024; consider spatie/laravel-permission instead.
If you want to override the exceptions thrown by this package, you can add them to the app/Exceptions/Handler.php file. For example:
public function register()
{
$this->renderable(function (\Junges\ACL\Exceptions\UnauthorizedException $exception, $request) {
return response()->json([
'message' => 'Authorization failed.',
'status' => 403
]);
});
}
You can find all exceptions added by this package here.
How can I help you explore Laravel packages today?