]> _ Git - cubist_cms-back.git/commitdiff
#2783
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 May 2019 13:10:37 +0000 (15:10 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 24 May 2019 13:10:37 +0000 (15:10 +0200)
src/app/Console/Commands/MagicCubistCommand.php
src/resources/cubistmagic/Controller.stub

index 8aa0c757e3bd5f98cddc2ced0510ab7faa83512e..2d1a86ef47e6e652db4a469fa36dedd87678e750 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 
-
 namespace Cubist\Backpack\app\Console\Commands;
 
 use Cubist\Backpack\app\Magic\Models\CubistMagicModelAbstract;
@@ -8,6 +7,7 @@ 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;
 
@@ -46,6 +46,8 @@ class MagicCubistCommand extends Command
         }
         $this->_writeRoutes();
 
+        Artisan::call('cache:clear');
+        Artisan::call('optimize');
         $this->executeProcess('composer dump-autoload');
     }
 
index 806f19f7586a3e51371e74dba2bc1858b714d4e8..06a1ff4e697d9f01106d173ea1fa36d53f3dfe12 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
-namespace App\Htpp\Controllers\Admin;
+namespace App\Http\Controllers\Admin;
+
 use Cubist\Backpack\app\Magic\Controllers\CubistMagicController;
 
 class _CONTROLLERCLASS_ extends CubistMagicController