I'm building an app on my localhost. When I login via one subdomain, (e.g. sub.localhost/) I need to access that logged-in user with Auth:: in all other subdomains of my application (e.g. sub2.localhost/, sub3.localhost/).
I made the change as this post suggests in config/session.php:
'domain' => '.localhost/',
No beans. In fact now I can't log in at all. Does this only work with a non-localhost domain? That would suck.
Did you try with only .localhost instead of .localhost/
if it is still doesn't work you can create an other host pointing to 127.0.0.1 : edit the /etc/hosts or Windows\System32\drivers\etc\hosts to set an other hostname for example : 127.0.0.1 host.loc