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