title: Laravel Login with outside data
body: <p>I'm using laravel. I know it has a functionality to do login really easy. But, as far as I know it just work with the laravel database. However, I have the database outside of my server so I am using an API to get everything I need. My question is how can I still use the Authentication function using my API?</p>
  
  <p>It is really easy to connect to the API and check if the user and password match, but after that How can I keep using the auth function of laravel for logout, guest and auth pages, etc.</p>
  
  <p>Other example that may work if it is easier to you understand it that way is imagine that I have my users on a text file instead on a database.</p>
  
  <p>Please help me and thanks in advance. </p>