blade session laravel code example
Example 1: set session in laravel
Session::put('variableName', $value);
Example 2: set session in laravel
Session::get('variableName');
Example 3: set session in laravel
session(['variableName' => $value]);
Example 4: session in laravel
session()->regenerate();