session put and get in laravel example
Example 1: get session id in laravel
Session::getId();
Example 2: laravel session put method
Session::put('key', 'value');
session(['key' => 'value']);
Example 3: laravel use session values in view
<!--This is placed in the view section --> {{ session('key_name') }}
Example 4: set session in laravel
session(['variableName' => $value]);