Welcome Guest, Not a member yet? Register   Sign In
Validation Placeholders being ignored for is_unique
#1

https://codeigniter4.github.io/CodeIgnit...aceholders

PHP Code:
protected $validationRules = [
 
¬† ¬†'email' => 'required|valid_email|is_unique[users.email,id,{id}]'
]; 

looking at the is_unique method in Rules.php it does not appear {id} is being converted to it's corresponding value in $data.

Thanks,
Kyle
Reply


Messages In This Thread
Validation Placeholders being ignored for is_unique - by NiteRaven - 11-26-2018, 11:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB