laravel 7 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: import session laravel
use Illuminate\Support\Facades\Session;
Example 4: session laravel
session(['name' => 'data']);