http://laravel.com/docs/validation#rule-unique
Forcing A Unique Rule To Ignore A Given ID
'email' => 'unique:users,email_address,10'
longilineo said:
http://laravel.com/docs/validation#rule-unique
Forcing A Unique Rule To Ignore A Given ID
'email' => 'unique:users,email_address,10'
how do I pass the current user's id to the $rules method in the user model?
you could override $rules['email'] before passing to validator
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community