Tuesday, February 28, 2017

Laravel registration and login pages on a subdomain

I am creating a website in Laravel 5.3 that has two different entry points for registration, these entry points need to be subdomains.

I've setup the two routes but I am a bit lost how I would setup the Auth::routes() for the two subdomains.

One route will be for users who will register and pay a monthly subscription fee while the other route will not have a subscription fee attached to them.

As a site note: the two registration forms are identical at the moment but one could get a few more fields added than the basic username / password fields (think of name, surname, etc).




via Marc Witteveen

Advertisement