laravel 8 Session::put Session::get Session::has code example
Example 1: set session in laravel
Session::put('variableName', $value);
Example 2: set session in laravel
session(['variableName' => $value]);
Session::put('variableName', $value);
session(['variableName' => $value]);