I have a dedicated server that is running Nginx as a webserver. I also have 3 domain names, for example www.domainnameA.com, www.domainnameB.com, and www.domainnameC.com
What i want to be able to do is run one Laravel 5.6 codebase, but somehow know if someone hits a route on domainnameA.com it should point to a specific place.
I know currently that Laravel can do subdomain routing;
Route::domain('{account}.myapp.com')->group(function () {}
But is there any way to do different domains completely.
And also be able to share credentials between them. i.e if a person logs in to domainnameA.com and then heads over to domainnameC.com they will still be logged in as the same user.
Can this be done with a mixture of nginx and laravel?