Add InformativeValidatorFactory and MessageFactory for User.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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!!!",
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user