backend/app/models/forms/CreatePostForm.php
2024-07-26 11:57:05 +03:00

16 lines
295 B
PHP

<?php
namespace app\models\forms;
use kernel\FormModel;
class CreatePostForm extends FormModel
{
public function rules(): array
{
return [
'content' => 'required|min-str-len:1|max-str-len:2048',
'user_id' => 'required|min-str-len:1',
];
}
}