laravel validation rules unique:content error code example
Example: validate field for existing client laravel
unique:users,username,id,1 // table, field, idcolumn, value to ignore
unique:users,username,id,1 // table, field, idcolumn, value to ignore