igfs/app/models/forms/CreatePostForm.php
2024-07-26 16:09:06 +03:00

16 lines
264 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',
'user_id' => 'required',
];
}
}