I'm using Laravel 5x and I'm trying to have the user login from (for example):

<https://dev.example.com/example_authentication/public/login> (this is one instance of laravel)

and then when I access:

<https://dev.example.com/mysecondwebsite/public> (this is another instance of laravel) I can just call:

```
$user = Auth::user();

```

and then get if its a user, admin, its name, etc.

What I've tried is to add both on the .env file of example\_authentication and mysecondwebsite

```
SESSION_DOMAIN='.example.com'

```

but the session does not persist.

any idea on what's happening?

UPDATE:

I'm using on the second laravel app 

```
$user = Auth::user();

```

for some reason it's generating its own session, for the record both instances have the same:

```
 'cookie' => 'vanguard_session'
  the same APP_KEY
  the same SESSION_DRIVER

```