From: Vincent Vanwaelscappel Date: Fri, 24 May 2019 14:06:14 +0000 (+0200) Subject: #2783 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1b4448ea8124cac7387d068025c9bd8e28b3a5ac;p=cubist_cms-back.git #2783 --- diff --git a/src/app/Console/Commands/MagicCubistCommand.php b/src/app/Console/Commands/MagicCubistCommand.php index efb89d3..344c012 100644 --- a/src/app/Console/Commands/MagicCubistCommand.php +++ b/src/app/Console/Commands/MagicCubistCommand.php @@ -7,7 +7,6 @@ use Cubist\Backpack\app\Magic\Util; use Cubist\Util\Files\Files; use Cubist\Util\PHP; use Illuminate\Console\Command; -use Illuminate\Support\Facades\Artisan; use Symfony\Component\Process\Exception\ProcessFailedException; use Symfony\Component\Process\Process; diff --git a/src/app/Magic/Controllers/CubistMagicController.php b/src/app/Magic/Controllers/CubistMagicController.php index 9e6d665..9071ee3 100644 --- a/src/app/Magic/Controllers/CubistMagicController.php +++ b/src/app/Magic/Controllers/CubistMagicController.php @@ -5,6 +5,7 @@ namespace Cubist\Backpack\app\Magic\Controllers; use Backpack\CRUD\app\Http\Controllers\CrudController; use Cubist\Backpack\app\Magic\CubistCrud; +use Cubist\Backpack\app\Magic\Models\CubistMagicModelAbstract; use Cubist\Backpack\app\Magic\Requests\CubistMagicStoreRequest; use Cubist\Backpack\app\Magic\Requests\CubistMagicUpdateRequest; @@ -51,6 +52,14 @@ class CubistMagicController extends CrudController } } + /** + * @return CubistMagicModelAbstract + */ + public function getModelInstance() + { + return $this->crud->getModel(); + } + public function store(CubistMagicStoreRequest $request) {