Multiple authentication guard drivers (including API) in Laravel 5.2
Read OriginalThis 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.
0 Comments
Comments
No comments yet
Be the first to share your thoughts!
Top of the Week
No top articles yet