Level 75
If you are going to use session enable it for the API routes. Though an API is usually token-based.
see also https://laracasts.com/discuss/channels/laravel/why-api-routes-do-not-have-session-middleware
Summer Sale! All accounts are 50% off this week.
After I installed JWT to my project , I changed my Auth Default Guard to API . My API works fine but on the web , when I start login ,it redirects to home page but not showing the user who is in , and it also show the login route.
Is there is away I can use both Web and API at the same time? or an other solution out there?
Please or to participate in this conversation.