laravel manually make session code example
Example 1: set session in laravel
Session::put('variableName', $value);
Example 2: session in laravel
session()->regenerate();
Session::put('variableName', $value);
session()->regenerate();