Which version of laravel you use????
Jun 26, 2019
7
Level 2
Laravel Passport | Login/Register redirects to welcome page
Hey guys,
I followed this tutorial (https://tutsforweb.com/laravel-passport-create-rest-api-with-authentication/#Install_Package) to getting Passport in my laravel project started.
But when I try to connect to these endpoint via Insomnia (insomnia.rest) I will be redirected to the welcome page.
Is there anything I can do to fix this issue?
Thanks to everyone who can help!
Best regards,
Robert
Level 2
I found the solution:
It was my failure, the use of
use Laravel\Passport\HasApiTokens;
inside the user model was false. It must be under the use of
use Illuminate\Foundation\Auth\User as Authenticatable;
after fixing this, everything worked fine!
Thanks for everyone who tried to help me!
Please or to participate in this conversation.