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

This commit is contained in:
2023-08-20 11:14:23 +03:00
parent c9974b007a
commit 8c62393d3f
6 changed files with 97 additions and 48 deletions
@@ -0,0 +1,20 @@
<?php
namespace App\Models\Validation\Messages;
use App\Models\Validation\Messages\BaseMessages;
class ItemMessagesFactory
{
protected array $messages = [
'found' => 'A item with the name is valid.',
'not_found' => 'A item with the name does not exist!!!',
'invalid_name' => 'The item name is empty, please, write the name!!!',
];
public function create()
{
return new BaseMessages($this->messages);
}
}