Laravel 5.2 now includes support for multiple authentication systems. For instance, maybe you want your web users to sign in with the traditional session-based setup that you've been using for years. But what about the API you offer? A login form doesn't make much sense in that case. Instead, we can opt for a different driver all together; a token-based driver.
View the route snippet for this lesson on GitHub.
Published on Mar 2nd, 2016.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.