Welcome Guest, Not a member yet? Register   Sign In
How to validate data with in_list inside model
#5

(04-18-2021, 11:36 PM)ojmichael Wrote: I think that's what the is_not_unique method is for.

PHP Code:
protected $validationRules = [
    'id' => 'required|is_not_unique[table.id]'
]; 
i never thought of this rule that way.
Thanks for the advice
Reply


Messages In This Thread
RE: How to validate data with in_list inside model - by llyimo1920 - 04-19-2021, 02:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB