- Introduced routes for managing admin settings including system, homepage, social media, marketplace, and HR settings. - Created a comprehensive test suite for the AdminSettingsController to ensure proper functionality and validation of settings updates. - Implemented tests for authentication, data integrity, and realistic user scenarios to validate the settings management process.
56 lines
1.4 KiB
PHP
56 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Settings;
|
|
|
|
use Spatie\LaravelSettings\Settings;
|
|
|
|
class HomepageSettings extends Settings
|
|
{
|
|
public string $hero_badge;
|
|
public string $hero_title_line1;
|
|
public string $hero_title_line2;
|
|
public string $hero_title_highlight;
|
|
public string $hero_description;
|
|
public string $hero_cta_primary_text;
|
|
public string $hero_cta_secondary_text;
|
|
public ?string $hero_image_url;
|
|
public string $hero_bg_text_left;
|
|
public string $hero_bg_text_right;
|
|
|
|
public string $scroll_hashtag;
|
|
public string $scroll_tagline;
|
|
|
|
public string $catalog_badge;
|
|
public string $catalog_title;
|
|
public string $catalog_description;
|
|
public string $catalog_search_placeholder;
|
|
|
|
public string $gallery_badge;
|
|
public string $gallery_title;
|
|
public string $gallery_description;
|
|
public array $gallery_images;
|
|
|
|
public string $order_guide_badge;
|
|
public string $order_guide_title;
|
|
public string $order_guide_description;
|
|
public array $order_steps;
|
|
|
|
public string $about_badge;
|
|
public string $about_title;
|
|
public ?string $about_image_url;
|
|
public array $about_features;
|
|
|
|
public string $contact_badge;
|
|
public string $contact_title;
|
|
public string $contact_description;
|
|
public string $contact_form_title;
|
|
|
|
public string $footer_description;
|
|
public string $footer_copyright;
|
|
|
|
public static function group(): string
|
|
{
|
|
return 'homepage';
|
|
}
|
|
}
|