laravel store session code example
Example 1: print session in laravel
dd(session()->all());
Example 2: set session in laravel
Session::put('variableName', $value);
Example 3: set session in laravel
session(['variableName' => $value]);
dd(session()->all());
Session::put('variableName', $value);
session(['variableName' => $value]);