Skip to content

Commit e3ae8db

Browse files
committed
create a folder for elfinder on installation
1 parent 991f21d commit e3ae8db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Serverfireteam/Panel/Commands/PanelCommand.php

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use Illuminate\Console\Command;
44
use Symfony\Component\Console\Input\InputOption;
55
use Symfony\Component\Console\Input\InputArgument;
6+
use Illuminate\Support\Facades\File;
67

78
class PanelCommand extends Command {
89

@@ -62,6 +63,12 @@ public function handle()
6263
$this->call('migrate', array('--path' => 'vendor/serverfireteam/panel/src/database/migrations'));
6364

6465
$this->call('db:seed', array('--class' => '\Serverfireteam\Panel\LinkSeeder'));
66+
67+
//will use for elfinder package
68+
$path = public_path().'/files/';
69+
if(!File::isDirectory($path)){
70+
File::makeDirectory($path, 0775, true, true);
71+
}
6572
}
6673

6774
/**

0 commit comments

Comments
 (0)