Laravel 5.7 - Override all() method in Request validation Class to validate route parameters?
问题 I want to validate the route parameters in the Request validation class. I know this question has been asked many times before but According to this question I override all() method and I receive this error: Class App\Http\Requests\DestroyUserRequest does not exist I'm using Laravel 5.7. Route: Route::delete('/user/{userId}/delete', 'UserController@destroy')->name('user.destroy'); Controller: <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests