igfs/app/models/forms/CreatePostForm.php

16 lines
264 B
PHP
Raw Normal View History

2024-07-25 16:15:18 +03:00
<?php
namespace app\models\forms;
use kernel\FormModel;
class CreatePostForm extends FormModel
{
public function rules(): array
{
return [
2024-07-26 12:42:44 +03:00
'content' => 'required|min-str-len:1',
2024-07-26 16:09:06 +03:00
'user_id' => 'required',
2024-07-25 16:15:18 +03:00
];
}
}