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:
2025-07-28 18:56:17 +05:00
parent 189cb53856
commit 74fc3b5e6a
22 changed files with 513 additions and 58 deletions

View 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';
}
}