get session value in laravel blade code example
Example 1: get session blade
{{ session()->get('name') }}
Example 2: check session in blade laravel
@if(session()->has('qwick'))
@else
@endif
Example 3: get session id in laravel
Session::getId();
Example 4: laravel use session values in view
<!--This is placed in the view section --> {{ session('key_name') }}
Example 5: set session data in laravel
Session::put('key', 'value');
session(['key' => 'value']);