Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

unique validation on update laravel

public function rules()
{
  return [
      'email' => 'required|email|unique:users,email,'.$this->user->id,
  ];
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #unique #validation #update #laravel
ADD COMMENT
Topic
Name
5+9 =