Currently I'm trying to receive the entire object (model) from the user. Right now I'm doing it like this (for example if I want to receive the email) :
$email = Auth::user()->email;
But when I do this:
$user = Auth::all();
It doesn't work obviously I'm doing something wrong. I've already searched in the laravel documentation but can't find it. Could someone explain this to me?
Thanks.