i am using laravel 5.5 and have installed passport for Api's. when i hit a api with post man with wrong input then it will respond with index page expect of giving me request error response.
Actually the issue is, when anything goes for validation and respond in error then it will always goes for index page instead of giving me error. i think that i might needed some changes in request code to proceed with api??
This will only work if i do not use custom request and do validation inside controller because if we use custom request then it will only go inside controller after validation passes. But i don't want to do validation inside controller. i wanted to use Request