how to add put session in the laravel controller code example
Example 1: laravel session put method
Session::put('key', 'value');
session(['key' => 'value']);
Example 2: set session in laravel
Session::get('variableName');
Session::put('key', 'value');
session(['key' => 'value']);
Session::get('variableName');