session configuration in laravel 5.6 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']);