laravel session save code example
Example 1: session variable in laravel
$request->session()->put('key','value');
Example 2: import session laravel
use Illuminate\Support\Facades\Session;
Example 3: set session data in laravel
Session::put('key', 'value');
session(['key' => 'value']);
Example 4: session laravel
session(['name' => 'data']);