From d934a6da27f7a8bca00934cf34ad43b7e834fef4 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 24 May 2019 15:10:37 +0200 Subject: [PATCH] #2783 --- src/app/Console/Commands/MagicCubistCommand.php | 4 +++- src/resources/cubistmagic/Controller.stub | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/Console/Commands/MagicCubistCommand.php b/src/app/Console/Commands/MagicCubistCommand.php index 8aa0c75..2d1a86e 100644 --- a/src/app/Console/Commands/MagicCubistCommand.php +++ b/src/app/Console/Commands/MagicCubistCommand.php @@ -1,6 +1,5 @@ _writeRoutes(); + Artisan::call('cache:clear'); + Artisan::call('optimize'); $this->executeProcess('composer dump-autoload'); } diff --git a/src/resources/cubistmagic/Controller.stub b/src/resources/cubistmagic/Controller.stub index 806f19f..06a1ff4 100644 --- a/src/resources/cubistmagic/Controller.stub +++ b/src/resources/cubistmagic/Controller.stub @@ -1,6 +1,7 @@