Add contact settings integration: update contact page to utilize dynamic settings for subtitle, header, paragraph, contact details, and map embed URL, enhancing content management and user experience.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use Spatie\LaravelSettings\Migrations\SettingsMigration;
|
||||
|
||||
return new class extends SettingsMigration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
$this->migrator->add('contact.contact_subtitle', 'Default Contact Subtitle');
|
||||
$this->migrator->add('contact.contact_header', 'Default Contact Header');
|
||||
$this->migrator->add('contact.contact_paragraph', 'This is a default paragraph for the contact page. Please update it from the Filament panel.');
|
||||
$this->migrator->add('contact.phone_number', '+1234567890');
|
||||
$this->migrator->add('contact.email_address', 'info@example.com');
|
||||
$this->migrator->add('contact.location_address', '123 Main St, Anytown, USA');
|
||||
$this->migrator->add('contact.map_embed_url', '');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user