flush session laravel code example
Example 1: laravel destroy session
# ref: https://laravel.io/forum/02-06-2014-session-destroy
Session::forget('yourKeyGoesHere') // Removes a specific variable
Example 2: session variable in laravel
$request->session()->put('key','value');
Example 3: how to clear session in laravel
# ref: https://laravel.io/forum/02-06-2014-session-destroy
Session::forget('yourKeyGoesHere') // Removes a specific variable