MIF_E31222691/app
Dries Vints 6f3aa7a4c5
Don't redirect for api calls
When calling api routes the Authenticate middleware attempts to redirect you to the login page. If you expect JSON back or don't have auth routes then you don't want this to happen. By re-using the logic from Laravel's exception handler on which format to output we can also determine wether to redirect the user to the login page or give them a JSON error response.
2018-10-12 15:40:15 +02:00
..
Console update comment 2017-07-17 09:12:08 -05:00
Exceptions update handler 2018-03-24 03:12:17 -05:00
Http Don't redirect for api calls 2018-10-12 15:40:15 +02:00
Providers add event registration 2018-06-21 11:09:58 -05:00
User.php fix stub 2018-09-06 08:11:07 -05:00