setup:prod script

This commit is contained in:
Peter Papp
2021-04-10 08:41:00 +02:00
parent 58ecc33986
commit afd2270e0e
3 changed files with 227 additions and 11 deletions

View File

@@ -32,27 +32,18 @@ class SetupDevEnvironment extends Command
protected $description = 'Set up development environment with demo data';
private $setup;
private $helper;
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->faker = Faker\Factory::create();
$this->setup = resolve(SetupService::class);
$this->helper = resolve(HelperService::class);
}
/**
* Execute the console command.
*
* @return int
*/
public function handle()
public function handle(): void
{
$this->info('Setting up development environment');
@@ -878,7 +869,6 @@ class SetupDevEnvironment extends Command
->each(function ($file) {
Storage::putFileAs("system", storage_path("demo/app/$file"), $file, "private");
});
}
/**