saade / filament-laravel-log

Read Laravel logs from the Filament admin panel
https://filamentphp.com/plugins/saade-laravel-log
MIT License
94 stars 21 forks source link

Restrict access #6

Closed EmilioBravo closed 2 years ago

saade commented 2 years ago

You already can restrict the access to the page, please check the docs.

https://github.com/saade/filament-laravel-log#authorization

ViewLog::can(function (User $user) {
    // $user is auth()->user();
    return $user->can('view_view_log');
});