/
home
/
techb158
/
immovalet.com
/
platform
/
core
/
base
/
src
/
Commands
/
/home/techb158/immovalet.com/platform/core/base/src/Commands
mkdir
upload
Name
Size
Mode
Actions
ClearLogCommand.php
1108
0644
edit
dl
rm
InstallCommand.php
1231
0644
edit
dl
rm
PublishAssetsCommand.php
805
0644
edit
dl
rm
Edit:
/home/techb158/immovalet.com/platform/core/base/src/Commands/InstallCommand.php
(1231B)
<?php namespace Botble\Base\Commands; use Illuminate\Console\Command; use Illuminate\Console\ConfirmableTrait; class InstallCommand extends Command { use ConfirmableTrait; /** * The console command signature. * * @var string */ protected $signature = 'cms:install'; /** * The console command description. * * @var string */ protected $description = 'Install CMS'; /** * Execute the console command. */ public function handle() { $this->info('Starting installation...'); $this->call('migrate:fresh'); if ($this->confirmToProceed('Do you want to add a new super user?', true)) { $this->call('cms:user:create'); } $this->info('Activating all plugins...'); $this->call('cms:plugin:activate:all'); if ($this->confirmToProceed('Do you want to install sample data?', true)) { $this->call('db:seed'); } $this->info('Publishing assets...'); $this->call('cms:publish:assets'); $this->info('Publishing lang...'); $this->call('vendor:publish', ['--tag' => 'cms-lang']); $this->info('Install CMS successfully!'); } }
Save
cmd:
run