Skip to content

Commit

Permalink
create a folder for elfinder on installation
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaAb committed Jul 2, 2019
1 parent 991f21d commit e3ae8db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Serverfireteam/Panel/Commands/PanelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use Illuminate\Support\Facades\File;

class PanelCommand extends Command {

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

$this->call('db:seed', array('--class' => '\Serverfireteam\Panel\LinkSeeder'));

//will use for elfinder package
$path = public_path().'/files/';
if(!File::isDirectory($path)){
File::makeDirectory($path, 0775, true, true);
}
}

/**
Expand Down

0 comments on commit e3ae8db

Please sign in to comment.