transaction
This commit is contained in:
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace kernel\app_modules\card\models\forms;
|
||||
|
||||
use kernel\FormModel;
|
||||
|
||||
class CreateCardTransactionForm extends FormModel
|
||||
{
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
// Заполнить массив правил
|
||||
// Пример:
|
||||
// return [
|
||||
// 'label' => 'required|min-str-len:5|max-str-len:30',
|
||||
// 'entity' => 'required',
|
||||
// 'slug' => '',
|
||||
// 'status' => ''
|
||||
// ];
|
||||
return [
|
||||
'from' => 'required|alpha-numeric',
|
||||
'to' => 'required|alpha-numeric',
|
||||
'amount' => 'required|alpha-numeric',
|
||||
'type' => 'required|alpha-numeric',
|
||||
'status' => ''
|
||||
];
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user