functionality for setting default folders for app installation

This commit is contained in:
Peter Papp
2021-02-27 11:49:01 +01:00
parent 3328fdebb0
commit f55472442f
9 changed files with 101 additions and 78 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Console\Commands;
use App\Page;
use App\Services\SetupService;
use App\Setting;
use App\User;
use Illuminate\Console\Command;
@@ -34,6 +35,7 @@ class SetupDevEnvironment extends Command
{
parent::__construct();
$this->faker = Faker\Factory::create();
$this->setup = app()->make(SetupService::class);
}
/**
@@ -45,6 +47,9 @@ class SetupDevEnvironment extends Command
{
$this->info('Setting up development environment');
$this->info('Creating system directories...');
$this->setup->create_directories();
$this->migrate_and_generate();
$this->store_data();
$this->seed_default_content();