Update finishing.blade.php

This commit is contained in:
Julian Prieber 2022-11-09 20:29:26 +01:00
parent a5a8bbe821
commit 25c9a98eb3

View File

@ -56,6 +56,27 @@
if(EnvEditor::keyExists('FORCE_HTTPS')){ /* Do nothing if key already exists */
} else {EnvEditor::addKey('FORCE_HTTPS', 'false');}
use App\Models\Page;
$data['page'] = Page::select('contact')->first();
if (strpos($data['page']->contact, 'info@littlelink-custom.com') !== false) {
$contact = '
<p><strong><a href="https://littlelink-custom.com/">LittleLink Custom</a></strong> is a free, open source&nbsp;link&nbsp;sharing platform. We depend on community feedback to steadily improve this project.</p>
<p><strong>Feel free to send us your feedback!</strong></p>
<ul>
<li>Join our <a href="https://discord.littlelink-custom.com/">community Discord</a></li>
<li>Join the <a href="https://github.com/JulianPrieber/littlelink-custom/discussions">discussion forum</a></li>
<li>Request a feature and add it to the <a href="https://github.com/JulianPrieber/littlelink-custom/discussions/49">to-do list</a></li>
<li>Write us an <a href="mailto:info@littlelink-custom.com?subject=Inquiry%20about%20LittleLink%20Custom">email</a></li>
</ul>
<p>If you&#39;re having any trouble or encountered a bug, feel free to <a href="https://github.com/JulianPrieber/littlelink-custom/issues">open an issue on GitHub</a>.</p>
<p>&nbsp;</p>
';
Page::first()->update(['contact' => $contact]);
/* Updates button database entries */
Schema::disableForeignKeyConstraints();
DB::table('buttons')->delete();