title: How To Logout user from specific session in Laravel?
body: <p>Im trying to implement , user login history and allow user to logout from specific device </p>
  
  <p>Im using <code>SESSION_DRIVER=database</code> and have <code>sessions</code> table in database
  as per <a href="https://laravel.com/docs/5.8/session#introduction" rel="nofollow noreferrer">laravel documentation</a> </p>
  
  <p><a href="https://i.stack.imgur.com/BeHD4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BeHD4.png" alt="enter image description here"></a></p>
  
  <p>i have <code>user_logins</code> table with below structure : </p>
  
  <blockquote>
    <p><strong>session_id |user_id | ip_address | user_agent | browser_name |
    location | login_at | is_active</strong></p>
  </blockquote>
  
  <p>Im success fully able to store above information in table <code>user_logins</code> using <a href="https://laravel.com/docs/5.8/events#event-subscribers" rel="nofollow noreferrer">UserEventSubscriber</a> <code>handleUserLogin</code> function </p>
  
  <p>now i want to logout a user from a specific device , how to do it ?</p>
  
  <p>I m able to delete entry from <code>user_logins</code> table with <code>ip_address</code> and <code>user_agent</code> but I also want to logout that user from specific device.</p>
  
  <p>anyone please help me to solve this .</p>