Added description to some functions

This commit is contained in:
Enes Sacid Büker
2023-03-10 10:50:42 +03:00
committed by GitHub
parent d261d76c98
commit c76a9180fd

View File

@ -51,6 +51,9 @@ trait Updates
}
}
/**
* Run single migration.
*/
public function runMigration(string $file_name, $alias = ''): void
{
$path = $this->getPathByAlias($alias);
@ -68,6 +71,9 @@ trait Updates
Artisan::call('migrate', ['--force' => true, '--path' => $migration_file]);
}
/**
* Run multiple migrations.
*/
public function runMigrations(array $file_names, $alias = ''): void
{
foreach ($file_names as $file_name) {