set session on input field in laravel 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]);