I am trying to use JWT for laravel web page instead of session. so I made some changes.
Then changed default guard as
apiin config/auth.php'defaults' => [ 'guard' => 'api', 'passwords' => 'users', ], 'guards' => [ ... 'api' => [ 'driver' => 'token', 'provider' => 'users', ], ],
Now I am getting error
(1/1) FatalErrorException Call to undefined method Illuminate\Auth\TokenGuard::attempt() in AuthenticatesUsers.php (line 75)
How to fix this and start token authentication for laravel web page(blades not API).