laravel session clear code example
Example 1: laravel clear cache
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
Example 2: laravel destroy session
Session::forget('yourKeyGoesHere')
Example 3: laravel clear page cache
php artisan cache:clear
Example 4: session flush laravel
$request->session()->forget('name');
$request->session()->forget(['name', 'status']);
$request->session()->flush();
Example 5: how to clear session in laravel
Session::forget('yourKeyGoesHere')