Answers for "how to access session data in layout in laravel 7"

PHP
6

session variable in laravel

$request->session()->put('key','value');
Posted by: Guest on April-18-2020
0

set session data in laravel

$value = Session::get('key');

$value = session('key');
Posted by: Guest on April-07-2021

Code answers related to "how to access session data in layout in laravel 7"

Browse Popular Code Answers by Language