Disable request validation redirect in Laravel 5.4
问题 So I'm trying to develop a rest API for an internal project, and I've got an issue where when the form request validation fails, it shows the @index response. So I have two routes; Route::get('/api/clients', 'ClientController@index'); Route::post('/api/clients', 'ClientController@store'); @index lists all clients, @store creates a new client and I've got a Form Request Validator on the @store method which checks a name is provided for the client. What I want is when the validator fails, it