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

This commit is contained in:
2023-08-18 13:20:09 +03:00
parent f437d777a5
commit 1a7c585aa7
6 changed files with 96 additions and 59 deletions
@@ -0,0 +1,20 @@
<?php
namespace App\Models\Validation\Messages;
use App\Models\Validation\Messages\BaseMessages;
class CityMessagesFactory
{
protected array $messages = [
'found' => 'A city with the name is valid.',
'not_found' => 'A city with the name does not exist!!!',
'invalid_name' => 'The city name is empty, please, write the name!!!',
];
public function create()
{
return new BaseMessages($this->messages);
}
}