backend/kernel/app_modules/photo/models/form/CreatePhotoForm.php
2024-11-29 13:23:48 +03:00

19 lines
330 B
PHP
Executable File

<?php
namespace kernel\app_modules\photo\models\form;
use kernel\FormModel;
class CreatePhotoForm extends FormModel
{
public function rules(): array
{
return [
'image' => 'required',
'entity' => 'required|string',
'entity_id' => 'required|integer|min:1',
];
}
}