Add UserValidationByMatrixUsername.
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-19 12:19:24 +03:00
parent 1a7c585aa7
commit c9974b007a
5 changed files with 91 additions and 53 deletions
@@ -0,0 +1,20 @@
<?php
namespace App\Models\Validation\Messages;
use App\Models\Validation\Messages\BaseMessages;
class UserMessagesFactory
{
protected array $messages = [
'found' => 'A user with the username is valid.',
'not_found' => 'A user with the username does not exist!!!',
'invalid_name' => 'The username is empty, please, write username!!!',
];
public function create()
{
return new BaseMessages($this->messages);
}
}