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

@@ -24,6 +24,7 @@ Route::get('our-solutiouns/{solution:slug}', [OurSolutionPageController::class,
// News...
Route::get('news', [NewsPageController::class, 'index'])->name('news.index');
Route::get('news/{news:slug}', [NewsPageController::class, 'show'])->name('news.show');
Route::post('news/{news:slug}/comments', [NewsPageController::class, 'storeComment'])->name('comments.store');
// Success stories...
Route::get('stories', [StoryPageController::class, 'index'])->name('story.index');