I have the custom class with method where I try to add new value to object Auth().
Auth::user()->newValue = array("name" => "Wern");
So, when I call Auth::user() in others controllers, I can not see this newValue.
How can I extend Auth::user()?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire