I'm using a middleware choosing the content depending on domain, but only in one of them sessions are being stored. The ideia is not share sessions between them. Each domain has to have it's sessions.
Example of problem is that CSRF tokens refresh on each reload.
I've tried set the configurations for each domain (cookie name, path, domain) and tried cookies, files and database. None of this worked.
Part of middleware code:
config([
'session.domain' => $domain,
'session.cookie' => $slugDomain . '_session',
'session.path' => '/' . $slugDomain
]);