I want to make changes (like change user status to logout) in to database when Auth session expires due to inactivity for some time.
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/session
to 'driver' => 'database'
. Then create the session table with artisan:
php artisan session:table
composer dump-autoload
php artisan migrate
Now you are able to check for users status on sessions table.