-
I am trying to set up LogViewer::auth(function ($request) {
/** @var Admin $user */
$user = $request->user('admin');
return $user && $user->hasRole('super') ;
}); 'middleware' => [
'web',
'admin',
\Opcodes\LogViewer\Http\Middleware\AuthorizeLogViewer::class,
], The log-viewer page fails to load when I include the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So, after making this post. I decided to try to create a custom middleware similar to this discussion. Add it works. |
Beta Was this translation helpful? Give feedback.
So, after making this post. I decided to try to create a custom middleware similar to this discussion. Add it works.