mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Currently, any unauthorized API requests that pass through the `auth` middleware get a redirect to the login page. Adding the `wantsJson` flag to the conditional corrects this behavior.