confirm('Are you sure you want to proceed? This will delete ALL data in your environment.')) { return; } $this->artisan('✓ Performing migrations', 'migrate:fresh'); $this->artisan('✓ Symlink the storage folder', 'storage:link'); if (! $this->option('skipSeed')) { $this->artisan('✓ Filling database with fake data', 'db:seed', ['--class' => 'FakeContentTableSeeder']); } $this->line(''); $this->line('-----------------------------'); $this->line('|'); $this->line('| Welcome to Monica v'.config('monica.app_version')); $this->line('|'); $this->line('-----------------------------'); $this->info('| You can now sign in to your account:'); $this->line('| username: admin@admin.com'); $this->line('| password: admin'); $this->line('| URL: '.config('app.url')); $this->line('-----------------------------'); $this->info('Setup is done. Have fun.'); } public function exec($message, $command) { $this->info($message); $this->line($command); exec($command, $output); $this->line(implode('\n', $output)); $this->line(''); } public function artisan($message, $command, array $arguments = []) { $this->info($message); $this->line(Application::formatCommandString($command)); $this->callSilent($command, $arguments); $this->line(''); } }