We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c648ec commit c6fe5fbCopy full SHA for c6fe5fb
app/Console/Commands/ModuleSymlinkCommand.php
@@ -4,6 +4,7 @@
4
5
use App\Services\ModulesService;
6
use Illuminate\Console\Command;
7
+use Illuminate\Support\Facades\Storage;
8
9
class ModuleSymlinkCommand extends Command
10
{
@@ -36,6 +37,12 @@ public function handle()
36
37
} else {
38
$modules = $moduleService->get();
39
40
+ /**
41
+ * let's clear all existing links
42
+ */
43
+ Storage::disk( 'ns' )->deleteDirectory( 'public/modules' );
44
+ Storage::disk( 'ns' )->makeDirectory( 'public/modules' );
45
+
46
$this->withProgressBar( $modules, function( $module ) use ( $moduleService ) {
47
$moduleService->createSymLink( $module[ 'namespace' ] );
48
});
0 commit comments