This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Validation;
|
||||
|
||||
use App\Models\Validation\ModelValidationByName;
|
||||
use App\Models\Validation\Messages\CityMessagesFactory;
|
||||
|
||||
class CityValidationByName extends ModelValidationByName
|
||||
{
|
||||
public function __construct(string $name)
|
||||
{
|
||||
parent::__construct(
|
||||
$name,
|
||||
'App\Models\City',
|
||||
(new CityMessagesFactory())->create(),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user