photo module
This commit is contained in:
1 parent
e7a20d9b97
commit
3ef1e7d7e0
17 files changed
+464
-71
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace kernel\app_modules\photo\models\form;
|
||||
|
||||
use kernel\FormModel;
|
||||
|
||||
class CreatePhotoForm extends FormModel
|
||||
{
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'image' => 'required',
|
||||
'entity' => 'required|string',
|
||||
'entity_id' => 'required|integer|min:1',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user