Skip to content

Commit 0c9b05b

Browse files
committed
Update button database entry on update
1 parent f2ca9ba commit 0c9b05b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

resources/views/components/finishing.blade.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,12 @@ function getStringBetween($string, $start, $end) {
3535
if(EnvEditor::keyExists('FORCE_HTTPS')){ /* Do nothing if key already exists */
3636
} else {EnvEditor::addKey('FORCE_HTTPS', 'false');}
3737
38+
/* Updates button database entries */
39+
Schema::disableForeignKeyConstraints();
40+
DB::table('buttons')->delete();
41+
DB::table('buttons')->truncate();
42+
Artisan::call('db:seed --class="ButtonSeeder"');
43+
Schema::enableForeignKeyConstraints();
44+
3845
echo "<meta http-equiv=\"refresh\" content=\"0; " . url()->current() . "?success\" />";
3946
?>

0 commit comments

Comments
 (0)