session set at login and use in laravel with 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']);