Integrate dynamic solution settings into homepage: replace static service titles and button with values from SolutionSettings, and implement a loop to display service items dynamically.
This commit is contained in:
23
app/Settings/SolutionSettings.php
Normal file
23
app/Settings/SolutionSettings.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Settings;
|
||||
|
||||
use Spatie\LaravelSettings\Settings;
|
||||
|
||||
class SolutionSettings extends Settings
|
||||
{
|
||||
public string $solutions_subtitle;
|
||||
|
||||
public string $solutions_header;
|
||||
|
||||
public string $solutions_button_text;
|
||||
|
||||
public string $solutions_button_url;
|
||||
|
||||
public array $solution_items;
|
||||
|
||||
public static function group(): string
|
||||
{
|
||||
return 'cms_solutions';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user