laravel get all session data
snippet in php

session variable in laravel

user4057

$request->session()->put('key','value');

import session laravel

user7209

use Illuminate\Support\Facades\Session;

laravel get all session data

user3757

$data = $request->session()->all();