From: Vincent Vanwaelscappel Date: Fri, 31 May 2019 15:29:49 +0000 (+0200) Subject: #2783 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=cdbb446bf615a15e02083d81d9eba7e0ab2d4175;p=cubist_cms-back.git #2783 --- diff --git a/src/app/Magic/Controllers/CubistMagicController.php b/src/app/Magic/Controllers/CubistMagicController.php index 29df555..3cb4f25 100644 --- a/src/app/Magic/Controllers/CubistMagicController.php +++ b/src/app/Magic/Controllers/CubistMagicController.php @@ -15,7 +15,7 @@ class CubistMagicController extends CrudController protected $_singular; protected $_plural; - public function _afterSetModel(){ + public function _postSetModel(){ } } diff --git a/src/app/Magic/Controllers/CubistMagicControllerTrait.php b/src/app/Magic/Controllers/CubistMagicControllerTrait.php index fb5f8a0..b5b8fdf 100644 --- a/src/app/Magic/Controllers/CubistMagicControllerTrait.php +++ b/src/app/Magic/Controllers/CubistMagicControllerTrait.php @@ -24,7 +24,7 @@ trait CubistMagicControllerTrait |-------------------------------------------------------------------------- */ $this->crud->setModel($this->_modelNamespace); - $this->_afterSetModel(); + $this->_postSetModel(); $this->crud->setRoute(config('backpack.base.route_prefix') . '/' . $this->_routeURL); $this->crud->setEntityNameStrings($this->_singular, $this->_plural); diff --git a/src/app/Magic/Controllers/CubistMagicNestedController.php b/src/app/Magic/Controllers/CubistMagicNestedController.php index 54ee64a..367ad89 100644 --- a/src/app/Magic/Controllers/CubistMagicNestedController.php +++ b/src/app/Magic/Controllers/CubistMagicNestedController.php @@ -15,7 +15,7 @@ class CubistMagicNestedController extends NestedModelsCrudController protected $_singular; protected $_plural; - public function _afterSetModel(){ + public function _postSetModel(){ $this->treeSetup(); } }