At the time of creating a user and applying the unique rule: users, email, the validation is being performed before creating the record and after the record has been created, which is causing the error 'The mutate.0.attributes.email field has already been registered.'
Steps To Reproduce
Rules of validation
`
public function createRules(\Lomkit\Rest\Http\Requests\RestRequest $request)
{
return [
'name' => 'required|string|max:255',
'email' => 'required|email|max:150|unique:users,email',
];
}
Hello @amendozaaguiar thanks for your feedback
Effectively there is a bug coming with the new feature, i'm on it, will publish a fix in 2 hours 😄
Have a nice day !
Laravel Rest Api Version
^2.3
Laravel Version
^10.10
PHP Version
8.1.24
Database Driver & Version
MySQL 8.0.32
Description
At the time of creating a user and applying the unique rule: users, email, the validation is being performed before creating the record and after the record has been created, which is causing the error 'The mutate.0.attributes.email field has already been registered.'
Steps To Reproduce
Rules of validation
`
`
Mutation:
Edit 10/11/2023 21:06:00 :