Support the ongoing development of Laravel.io →
Input Forms Validation
Last updated 2 years ago.
0

You could probably simplify it by using getDirty method to get list of changed attributes. And, optionally, move password check to validation in UserEditRequest.

0

Xum said:

You could probably simplify it by using getDirty method to get list of changed attributes. And, optionally, move password check to validation in UserEditRequest.

How would I go about validating a password in the validation method?

0

you could split up the statements in to more manageable functions and call them one by one. obviously you will need to do the same tasks from the different controller function in the future. and there's too much extra line feeds in your code. i dont see why you need them.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

muyiwaolu muyiwaolu Joined 24 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.