i have a project in Laravel 5.4 where i'm using Database Sessions, problem is that i'm authenticating through a JWT API (the Laravel part) and my frontend is two VueJS SPA applications a backoffice and a frontend.
The problem is that i have separate tables for Admins and Users and Laravel's default Session table does not pick up my user_id at all it seems. Furthermore it doesn't store all the information i would like it to store.
As such i thought of creating two Session tables of my own, one for Admins and one for Users and they store slightly different pieces of information, but this would involve replacing the default Laravel table and i don't know exactly how that works and what Laravel uses that table for exactly.
How would you go about replacing the sessions table in Laravel? Has anyone done this? Thank you in advance for your assistance :)
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire