In your method try resolving the form request from the container
$request = app('App\Http\Requests\StoreCityRequest');
$request->validate();
https://github.com/laravel/framework/issues/7995#issuecomment-82269811
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hi, usually we would use StoreCityRequest $request then call $request->validated() or calling validator manually like $this->validate($request, []);.
but i wanted to use something like Request $request then inside the function i'd call StoreCityRequest::validate($request).
we used a single function for store and update since the controller is already cramped and I wanted to make It cleaner
Please or to participate in this conversation.