Matt Stauffer 1/22/2016

Multiple authentication guard drivers (including API) in Laravel 5.2

Read Original

This technical article details Laravel 5.2's enhanced authentication system, which allows multiple 'guards' to run simultaneously. It explains the default 'web' (session-based) and 'api' (stateless token-based) guards, how to configure them in the auth.php file, and how to use the auth:api middleware and Auth::guard('api') for API routes.

Multiple authentication guard drivers (including API) in Laravel 5.2

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet