Answers for "session flush laravel"

PHP
4

laravel destroy session

# ref: https://laravel.io/forum/02-06-2014-session-destroy

Session::forget('yourKeyGoesHere') // Removes a specific variable
Posted by: Guest on July-11-2020
0

session flush laravel

// Forget a single key...
$request->session()->forget('name');
// Forget multiple keys...
$request->session()->forget(['name', 'status']);

$request->session()->flush();
Posted by: Guest on April-23-2021
6

session variable in laravel

$request->session()->put('key','value');
Posted by: Guest on April-18-2020

Browse Popular Code Answers by Language