info('Running auto deployment'); $this->call('down'); // Exec commands exec('git pull origin dev'); exec('composer install --no-interaction --no-dev --prefer-dist'); $this->migrateDatabase(); // Stop deployment $this->call('up'); $this->info('Everything is done, congratulations! 🥳🥳🥳'); } /** * Migrate database */ public function migrateDatabase() { $this->call('migrate', [ '--force' => true, ]); } }