-
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- contact page with editable content - additional footer link - custom navbar title / logo text - small optimizations for guest mode
- Loading branch information
Showing
19 changed files
with
301 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use App\Settings\SystemSettings; | ||
|
||
class ContactController extends Controller | ||
{ | ||
public function __invoke(SystemSettings $systemSettings) | ||
{ | ||
if (!$systemSettings->contact_page_enabled) { | ||
abort(404); | ||
} | ||
|
||
return view('app.contact', [ | ||
'title' => $systemSettings->contact_page_title, | ||
'content' => $systemSettings->contact_page_content, | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
database/settings/2024_11_16_092942_extend_system_settings.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
use Spatie\LaravelSettings\Migrations\SettingsMigration; | ||
|
||
Class ExtendSystemSettings extends SettingsMigration | ||
Check notice on line 5 in database/settings/2024_11_16_092942_extend_system_settings.php Codacy Production / Codacy Static Code Analysisdatabase/settings/2024_11_16_092942_extend_system_settings.php#L5
Check notice on line 5 in database/settings/2024_11_16_092942_extend_system_settings.php Codacy Production / Codacy Static Code Analysisdatabase/settings/2024_11_16_092942_extend_system_settings.php#L5
|
||
{ | ||
public function up(): void | ||
{ | ||
$this->migrator->add('system.logo_text', null); | ||
|
||
$this->migrator->add('system.additional_footer_link_url', null); | ||
$this->migrator->add('system.additional_footer_link_text', null); | ||
|
||
$this->migrator->add('system.contact_page_enabled', false); | ||
$this->migrator->add('system.contact_page_title', null); | ||
$this->migrator->add('system.contact_page_content', null); | ||
|
||
$this->migrator->add('guest.locale', config('app.fallback_locale')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.