return session laravel code example
Example 1: print session in laravel
dd(session()->all());
Example 2: set session data in laravel
Session::put('key', 'value');
session(['key' => 'value']);
dd(session()->all());
Session::put('key', 'value');
session(['key' => 'value']);