Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel Unique Email Validation on Update Example

 // Using Form Request

 	public function rules()
    {
        return [
            'name'  => [
                'required',
                Rule::unique('posts')->ignore($this->id)
            ],
          ];
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Laravel #Unique #Email #Validation #Update #Example
ADD COMMENT
Topic
Name
3+7 =