I have two controller viz Dashboard Controller and Notification Controller
I am creating a session in Dashboard controller as follows
session(['freshLogin' => 1]);
And accessing this session in Notification Controller as follows
$value = session('freshLogin');
But $value in Notification Controller is returning null. When I access the session in the Dashboard controller itself I get the correct result
I referred the following answer but it didn't help
Accessing session data in controller(Laravel)
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire