How do I use validation requests?

To use a custom validation request, we have to replace the request that is passed to the controller function we wish to affect.

Change from:

public function updateAddress(Request $request, Customer $customer)

Change to:

public function updateAddress(UpdateAddressRequest $request, Customer $customer)

Articles in this section

Was this article helpful?
0 out of 0 found this helpful