Skip to content

Commit 27e0ef9

Browse files
committed
added required fields asterisks by default in crud controller stub
1 parent 69eaf86 commit 27e0ef9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stubs/crud-controller.stub

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ class __class_name__ extends CrudController
3737

3838
$this->crud->addFields(__fields__);
3939

40+
$this->crud->setRequiredFields(StoreRequest::class, 'create');
41+
$this->crud->setRequiredFields(UpdateRequest::class, 'edit');
42+
4043
/*
4144
|--------------------------------------------------------------------------
4245
| CRUD FILTERS

0 commit comments

Comments
 (0)