Artisan command for clearing all session data in Laravel

前端 未结 9 940
北荒
北荒 2021-02-04 02:16

What is the artisan command for clearing all session data in Laravel, I\'m looking for something like:

$ php artisan session:clear

But apparent

9条回答
  •  遇见更好的自我
    2021-02-04 03:05

    If you are using file based sessions, you can use the following linux command to clean the sessions folder out:

    rm -f storage/framework/sessions/*
    

提交回复
热议问题