I use google authenticator to add in laravel-admin
in post to new page /auth/auth
, always be redirect to /auth/login
, because
“/auth/auth” not in admin.auth.excepts
how do I solve this problem without edit
/vendor/composer/encore/laravel-admin/src/Middleware/Authenticate.php
I have tried to override Authenticate.php by copying Authenticate.php
to app/http/Middleware
but doesn't work
from
protected function shouldPassThrough($request)
{
$excepts = config('admin.auth.excepts', [
'auth/login',
'auth/logout',
]);
to
protected function shouldPassThrough($request)
{
$excepts = config('admin.auth.excepts', [
'auth/login',
'auth/logout',
'auth/auth'
]);
I want to post /auth/login
to /auth/auth
(with google authenticator)
then login to laravel-admin