laravel 7 get value session code example
Example 1: laravel get all session data
$data = $request->session()->all();
Example 2: session variable in laravel
$request->session()->put('key','value');
Example 3: session laravel
session(['name' => 'data']);