mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-20 13:17:26 +02:00
Update finishing.blade.php
This commit is contained in:
parent
3717eb953e
commit
7a07b49b3f
@ -1,4 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
//run before finishing:
|
//run before finishing:
|
||||||
if(EnvEditor::keyExists('JOIN_BETA')){ /* Do nothing if key already exists */
|
if(EnvEditor::keyExists('JOIN_BETA')){ /* Do nothing if key already exists */
|
||||||
@ -77,12 +80,27 @@
|
|||||||
|
|
||||||
/* Updates button database entries */
|
/* Updates button database entries */
|
||||||
Artisan::call('migrate');
|
Artisan::call('migrate');
|
||||||
Artisan::call('migrate:refresh --path=database/migrations/2022_09_22_123137_link-type.php');
|
|
||||||
Schema::disableForeignKeyConstraints();
|
Schema::disableForeignKeyConstraints();
|
||||||
DB::table('buttons')->delete();
|
DB::table('buttons')->delete();
|
||||||
DB::table('buttons')->truncate();
|
DB::table('buttons')->truncate();
|
||||||
try {Artisan::call('db:seed --class="ButtonSeeder" --force');} catch (exception $e) {}
|
try {Artisan::call('db:seed --class="ButtonSeeder" --force');} catch (exception $e) {}
|
||||||
Schema::enableForeignKeyConstraints();
|
Schema::enableForeignKeyConstraints();
|
||||||
|
|
||||||
|
DB::table('link_types')->updateOrInsert([
|
||||||
|
'typename' => 'text',
|
||||||
|
'title' => 'Text',
|
||||||
|
'icon' => 'bi bi-fonts',
|
||||||
|
'description' => 'Add static text to your page that is not clickable.',
|
||||||
|
'params' => '[{
|
||||||
|
"tag": "textarea",
|
||||||
|
"id": "static-text",
|
||||||
|
"for": "static_text",
|
||||||
|
"label": "Text",
|
||||||
|
"name": "static_text",
|
||||||
|
"class": "form-control"
|
||||||
|
}
|
||||||
|
]'
|
||||||
|
]);
|
||||||
|
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"0; " . url()->current() . "?success\" />";
|
echo "<meta http-equiv=\"refresh\" content=\"0; " . url()->current() . "?success\" />";
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user