HOW TO SET SESSION VARIABLE IN LARAVEL code example
Example 1: set session in laravel
Session::put('variableName', $value);
Example 2: set session in laravel
Session::get('variableName');
Example 3: session variable in laravel
$request->session()->put('key','value');
Example 4: session laravel
session(['name' => 'data']);