- admin client order

This commit is contained in:
Peter Papp
2021-03-22 10:43:37 +01:00
parent 80b24cd753
commit 3c01ce5ad3
10 changed files with 1022 additions and 252 deletions

View File

@@ -29,5 +29,21 @@ class AppServiceProvider extends ServiceProvider
// Set locale for carbon dates
setlocale(LC_TIME, $get_time_locale);
// Get all migrations with all directories
$this->loadMigrationsFrom(
$this->get_migration_paths()
);
}
/**
* @return array
*/
private function get_migration_paths(): array
{
$mainPath = database_path('migrations');
$directories = glob($mainPath . '/*', GLOB_ONLYDIR);
return array_merge([$mainPath], $directories);
}
}