mercredi 1 mai 2019

Session value isn't show in Laravel blade

I want to show username into top right side of my header in my laravel webpage but the value isn't shown.

After login successfully I have set the username into Session but the value doesn't show. No error shown also!

Controller

Session::put('user_id', $data->id);
Session::put('user_name', $data->name);
Session::put('user_email', $data->email);

return redirect('/home');

In blade

How to solve that? Where is the problem? Anybody help please?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire