laravel add session variable with form request code example
Example 1: laravel get all session data
$data = $request->session()->all();
Example 2: import session laravel
use Illuminate\Support\Facades\Session;
$data = $request->session()->all();
use Illuminate\Support\Facades\Session;