File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,20 @@ class __class_name__ extends CrudController
1717 | BASIC CRUD INFORMATION
1818 |--------------------------------------------------------------------------
1919 */
20+
2021 $this->crud->setModel(__model_class__::class);
2122 $this->crud->setRoute(config('backpack.base.route_prefix') . '/__route_name__');
2223 $this->crud->setEntityNameStrings(trans('models.__languagefile_key__.singular'), trans('models.__languagefile_key__.plural'));
2324
25+ /*
26+ |--------------------------------------------------------------------------
27+ | OPTIONAL CRUD SETTINGS
28+ |--------------------------------------------------------------------------
29+ */
30+
31+ $this->crud->setRequiredFields(StoreRequest::class, 'create');
32+ $this->crud->setRequiredFields(UpdateRequest::class, 'edit');
33+
2434 /*
2535 |--------------------------------------------------------------------------
2636 | CRUD COLUMNS
You can’t perform that action at this time.
0 commit comments