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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user