Dynamic session cookie name in Laravel

Here’s a case that may be useful when authenticating multiple apps from a single Laravel code-base. Recently I’ve built an application API and admin UI in the same Laravel code-base. This made lots of things easier to manage, including DB-related stuff. The API is consumed by a single-page app (ReactJS) and the backend is built with Laravel Orchid. Also, it’s worth noting that the API is using Laravel Sanctum to

Continue reading