laravel-enso / enso

Laravel Vue SPA, Bulma themed. For demo login use `admin@laravel-enso.com` & `password` -
https://www.laravel-enso.com
MIT License
1.08k stars 277 forks source link

Using Auth on certain pages fails on Linux but not Windows #334

Closed curtisdelicata closed 4 years ago

curtisdelicata commented 4 years ago

I ran php artisan optimize:clear first to check but this did not work. Basically using auth::user works on Store.php but not Destroy.php

On Store.php it works and gets the variable names from auth but on Destroy.php it returns could not find object user->email. It is strange as works fine on two Windows installs.

Is there anything else I can try?

curtisdelicata commented 4 years ago

Fixed this by assigning the auth helper to $user before dropping db with tenancy dispatch... I believe on live dispatching the job loses the session information.