Nov 17, 2017
0
Level 1
Session file to declare all variable session
Hello to all,
I want to declare multiple session variables. I want to put them all in the same file and then call the file to create my variable sessions.
And so, every page load, I check if my session is set... and if not, I set them by calling this file..
In php i did :
if(!isset($_SESSION["city"])) { include 'sessions.php' } to create all session variable required.
Can i do that in Laravel ?
Thanks
Pascal
Please or to participate in this conversation.