Add ValidationByName and CompanyValidationByName.
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-17 19:22:10 +03:00
parent 135f4c0c93
commit f437d777a5
10 changed files with 226 additions and 57 deletions
@@ -0,0 +1,20 @@
<?php
namespace App\Models\Validation\Messages;
use App\Models\Validation\Messages\BaseMessages;
class CompanyMessagesFactory
{
protected array $messages = [
'found' => 'A company with the name is valid.',
'not_found' => 'A company with the name does not exist!!!',
'invalid_name' => 'The company name is empty, please, write the name!!!',
];
public function create()
{
return new BaseMessages($this->messages);
}
}