File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11<?php
22
33return [
4+ /**
5+ * Load migrations from package migrations,
6+ * If you published the migration files, please set to `false`.
7+ */
8+ 'migrations ' => false ,
9+
410 /*
511 * Models Related.
612 */
Original file line number Diff line number Diff line change @@ -26,7 +26,12 @@ public function boot()
2626 */
2727 protected function registerMigrations ()
2828 {
29- if (count (\File::glob (database_path ('migrations/*acquaintances*.php ' ))) === 0 ) {
29+ $ config = $ this ->app ['config ' ]['acquaintances ' ];
30+ $ runMigrations = is_null ($ config ['migrations ' ] ?? null )
31+ ? count (\File::glob (database_path ('migrations/*acquaintances*.php ' ))) === 0
32+ : $ config ['migrations ' ];
33+
34+ if ($ runMigrations ) {
3035 $ this ->loadMigrationsFrom (__DIR__ .'/../database/migrations ' );
3136 }
3237 }
You can’t perform that action at this time.
0 commit comments