How to use a single Larable authentication for all subdomains of the same domain?

Asked

Viewed 131 times

0

I need to use a single authentication in a standard project, which is in the subdominio1.dominio.com.br. In this subdomain will have an authentication, and is working normally, via database 'driver' => env('SESSION_DRIVER', 'database') down in the session.php. I have another subdomain, subdominio2.dominio.com.br, and I want to use the same authentication subdominio1.dominio.com.br, using the same user table for all subdomains. How do I use this same authentication in all subdomains?

  • Will both subdominios point to the same 'public' folder as the project? Or will they be completely independent?

  • They will point to the same public folder yes. If you can help me with that too, thank you.

  • I’m in the same trouble!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.