Implement news management features: add author field and comments functionality in NewsResource, enhance HomePageController to fetch latest news, and create dedicated views for news display and commenting. Update routes for comment submission and adjust homepage to showcase recent news articles.
This commit is contained in:
18
app/Settings/CtaSettings.php
Normal file
18
app/Settings/CtaSettings.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Settings;
|
||||
|
||||
use Spatie\LaravelSettings\Settings;
|
||||
|
||||
class CtaSettings extends Settings
|
||||
{
|
||||
public string $title;
|
||||
public string $button_text;
|
||||
public string $button_url;
|
||||
public string $background_image;
|
||||
|
||||
public static function group(): string
|
||||
{
|
||||
return 'cta';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user