Try this:
$user = User::find(Auth::id());
Hope this helps,
Ben
Thank you!
I have no idea why, but this works.
Does anyone know about the "internal" difference between my version
$user = User::find(Auth::user()->id);
and Bens suggestion
$user = User::find(Auth::id());
?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community