get all session data for that user laravel code example
Example 1: laravel get all session data
$data = $request->session()->all();
Example 2: session laravel
session(['name' => 'data']);
$data = $request->session()->all();
session(['name' => 'data']);