save session to sessionstorage laravel code example
Example 1: laravel get all session data
$data = $request->session()->all();
Example 2: import session laravel
use Illuminate\Support\Facades\Session;
Example 3: session flash
session()->flash('key', 'value');