method 5blogoutotherdevices 5d does not exist laravel

Solutions on MaxInterview for method 5blogoutotherdevices 5d does not exist laravel by the best coders in the world

showing results for - "method 5blogoutotherdevices 5d does not exist laravel"
Roberto
12 Feb 2018
1Hi, I might be wrong. But if I remember rightly JSON web tokens are stateless 
2and by default arent stored in the database. The default Laravel behaviour 
3for this in the 'web' sessions is done by changing a cookie.
4
5You could add this functionality yourself temporarily by storing the tokens in 
6the database. You could then write a middleware to check if the token exists 
7in the database on each request. If a user was to logoutOtherDevices you could 
8delete all their tokens from the database. So the middleware would deny access 
9on the users next requests. Hopefully this makes sense and helps a bit?
similar questions