I want to make changes (like change user status to logout) in to database when Auth session expires due to inactivity for some time.
1条回答 默认 最新
doubei5114 2017-07-27 06:35关注If you don't want control it after a request (which can be done with middlewares) you should use the Database Session Driver. Change it in
config/sessionto'driver' => 'database'. Then create the session table with artisan:php artisan session:table composer dump-autoload php artisan migrateNow you are able to check for users status on sessions table.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报