v0.1.10
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace kernel\modules\notification\models\forms;
|
||||
|
||||
use kernel\FormModel;
|
||||
|
||||
/**
|
||||
* @property string $key
|
||||
* @property string $value
|
||||
* @property string $label
|
||||
* @property integer $status
|
||||
*/
|
||||
class CreateNotificationForm extends FormModel
|
||||
{
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'user_id' => 'required|integer',
|
||||
'message' => 'required',
|
||||
'is_read' => '',
|
||||
'data' => '',
|
||||
'type' => 'required',
|
||||
'subject' => '',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user