/home/techb158/exp.abdallabala.com/vendor/illuminate/database/Console/Migrations
NameSizeModeActions
BaseCommand.php14500644editdlrm
FreshCommand.php42090644editdlrm
InstallCommand.php15760644editdlrm
MigrateCommand.php29650644editdlrm
MigrateMakeCommand.php43740644editdlrm
RefreshCommand.php45410644editdlrm
ResetCommand.php24690644editdlrm
RollbackCommand.php23080644editdlrm
StatusCommand.php31000644editdlrm
TableGuesser.php9030644editdlrm
Edit: /home/techb158/exp.abdallabala.com/vendor/illuminate/database/Console/Migrations/MigrateCommand.php (2965B)
migrator = $migrator; } /** * Execute the console command. * * @return void */ public function handle() { if (! $this->confirmToProceed()) { return; } $this->prepareDatabase(); // Next, we will check to see if a path option has been defined. If it has // we will use the path relative to the root of this installation folder // so that migrations may be run for any path within the applications. $this->migrator->setOutput($this->output) ->run($this->getMigrationPaths(), [ 'pretend' => $this->option('pretend'), 'step' => $this->option('step'), ]); // Finally, if the "seed" option has been given, we will re-run the database // seed task to re-populate the database, which is convenient when adding // a migration and a seed at the same time, as it is only this command. if ($this->option('seed') && ! $this->option('pretend')) { $this->call('db:seed', ['--force' => true]); } } /** * Prepare the migration database for running. * * @return void */ protected function prepareDatabase() { $this->migrator->setConnection($this->option('database')); if (! $this->migrator->repositoryExists()) { $this->call('migrate:install', array_filter([ '--database' => $this->option('database'), ])); } } }