Add InformativeValidatorFactory and MessageFactory for User.
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-09-06 17:21:05 +03:00
parent c592931101
commit 85bd79e59c
3 changed files with 91 additions and 0 deletions
@@ -0,0 +1,18 @@
<?php
namespace App\Models\Validation\Messages\Factories;
use App\Models\Validation\Messages\Factories\MessageFactory;
class UsernameMessageByNameFactory extends MessageFactory
{
public function create(): array
{
return [
'found' => "A user with the username is valid.",
'not_found' => "A user with the username does not exist!!!",
'invalid_name' => "The username is invalid, please, check that you are registered or signed in!!!",
];
}
}