]> _ Git - cubist_cms-back.git/commitdiff
#2783
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 May 2019 14:06:14 +0000 (16:06 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 May 2019 14:06:14 +0000 (16:06 +0200)
src/app/Console/Commands/MagicCubistCommand.php
src/app/Magic/Controllers/CubistMagicController.php

index efb89d332e7f1b726e5f7ed9b66769814e12b331..344c012d681ef9f4449db2bb6deac5814f257f3e 100644 (file)
@@ -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;
 
index 9e6d665879827b5096efa307936bf2a75ac05059..9071ee3263de7a9e6a878309be62ae15be826a07 100644 (file)
@@ -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)
     {