When you develop an app in Laravel, sometimes you need to have a webapp and her native counterpart. To manage the authentication on the API side, there’s this lovely package that is tappleby\laravel-auth-token. One of the les documented features of this package is how to maintain in sync the tokens and the laravel auth.
Why? Because when an api is called with the right token, you want to use Auth::user() and Auth::check(), for example.
What you need to do is add (at the end) of
app/start/global.php this three events that will bound the token events to the authentication system