Skip to content

Commit 7a07b49

Browse files
committed
Update finishing.blade.php
1 parent 3717eb9 commit 7a07b49

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

resources/views/components/finishing.blade.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
use Illuminate\Database\Migrations\Migration;
3+
use Illuminate\Database\Schema\Blueprint;
4+
use Illuminate\Support\Facades\Schema;
25
36
//run before finishing:
47
if(EnvEditor::keyExists('JOIN_BETA')){ /* Do nothing if key already exists */
@@ -77,12 +80,27 @@ function getStringBetween($string, $start, $end) {
7780
7881
/* Updates button database entries */
7982
Artisan::call('migrate');
80-
Artisan::call('migrate:refresh --path=database/migrations/2022_09_22_123137_link-type.php');
8183
Schema::disableForeignKeyConstraints();
8284
DB::table('buttons')->delete();
8385
DB::table('buttons')->truncate();
8486
try {Artisan::call('db:seed --class="ButtonSeeder" --force');} catch (exception $e) {}
8587
Schema::enableForeignKeyConstraints();
8688
89+
DB::table('link_types')->updateOrInsert([
90+
'typename' => 'text',
91+
'title' => 'Text',
92+
'icon' => 'bi bi-fonts',
93+
'description' => 'Add static text to your page that is not clickable.',
94+
'params' => '[{
95+
"tag": "textarea",
96+
"id": "static-text",
97+
"for": "static_text",
98+
"label": "Text",
99+
"name": "static_text",
100+
"class": "form-control"
101+
}
102+
]'
103+
]);
104+
87105
echo "<meta http-equiv=\"refresh\" content=\"0; " . url()->current() . "?success\" />";
88106
?>

0 commit comments

Comments
 (0)