You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
419 B
19 lines
419 B
<?php
|
|
|
|
namespace App\Models\Validation;
|
|
|
|
use App\Models\Validation\ModelValidationByName;
|
|
use App\Models\Validation\Messages\CompanyMessagesFactory;
|
|
|
|
class CompanyValidationByName extends ModelValidationByName
|
|
{
|
|
public function __construct(string $name)
|
|
{
|
|
parent::__construct(
|
|
$name,
|
|
'App\Models\Company',
|
|
(new CompanyMessagesFactory())->create(),
|
|
);
|
|
}
|
|
}
|