How to validate data with in_list inside model |
I am trying to do clean-up in my controllers by moving my validation rules to the model class but unfortunately i came to realize there is no clear documentation on how to pass values to be tested into the validation rules. I have been searching for a solution without luck.
NB: the in_list values are expected to come from the database, so the list is dynamic PHP Code: protected $validationRules = [ |
Messages In This Thread |
How to validate data with in_list inside model - by llyimo1920 - 04-18-2021, 12:22 PM
RE: How to validate data with in_list inside model - by iRedds - 04-18-2021, 08:26 PM
RE: How to validate data with in_list inside model - by llyimo1920 - 04-18-2021, 10:24 PM
RE: How to validate data with in_list inside model - by ojmichael - 04-18-2021, 11:36 PM
RE: How to validate data with in_list inside model - by llyimo1920 - 04-19-2021, 02:47 AM
|