We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 075f360 commit e75121cCopy full SHA for e75121c
resources/views/components/finishing.blade.php
@@ -149,6 +149,18 @@
149
Page::first()->update(['home_message' => $home_message]);
150
}
151
152
+ $migrationFiles = glob(database_path('migrations/*.php'));
153
+
154
+ $fileNames = array_map(function ($file) {
155
+ return basename($file, '.php');
156
+ }, $migrationFiles);
157
158
+ foreach ($fileNames as $fileName) {
159
+ if (!DB::table('migrations')->where('migration', $fileName)->exists()) {
160
+ DB::table('migrations')->insert(['migration' => $fileName, 'batch' => 1]);
161
+ }
162
163
164
/* Updates button database entries */
165
Schema::disableForeignKeyConstraints();
166
$existingMigration = '2021_03_17_044922_create_buttons_table';
0 commit comments