how to create a session in laravel controller 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]);