laravel save in 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: set session data in laravel
Session::put('key', 'value');
session(['key' => 'value']);