Try do some debugging?
Auth::loginUsingId(1);
Or something else like that to narrow down where/what is failing
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Anyone else trying to move Larabook over to 4.3 and having this issue?
It seems to be the Auth class. If I comment out the Auth::attempt part in SessionsController@store it successfully goes to the statuses url. But then because of the auth filter on the statuses route I get the same error. If I remove the auth filter from the route it goes through just fine. Then in the first line of StatusesController@index where we pass through Auth::user() I get an error because it is returning NULL.
So something is definitely wrong with Auth or my User model.
I've changed out the new contracts for interfaces according to the example User model that comes with 4.3 and made sure config/auth.php has the correct namespace to the model.
Yay problem solved! It was a Auth problem but was because of the AppServiceProvider with View::share($currentUser, Auth::user()); trying to load before the Illuminate service providers. Probably this one specifically 'Illuminate\Database\DatabaseServiceProvider'
Found the answer here https://laracasts.com/discuss/channels/requests/laravel-43-and-viewshare
Just moved the entire application service providers block below the block of Illuminate service providers.
Please or to participate in this conversation.