Created
February 2, 2017 20:32
-
-
Save blakethepatton/98a4fc00713e63db23187f72b0cd0f07 to your computer and use it in GitHub Desktop.
Laravel migrator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
$migrationRepository = app('migration.repository'); | |
if (!$migrationRepository->repositoryExists()) | |
{ | |
$migrationRepository->createRepository(); | |
} | |
$migrator = app('migrator'); | |
$migrator->run(database_path('migrations')); | |
return response()->json(['notes' => $migrator->getNotes()]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment