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:
1 parent
189cb53856
commit
74fc3b5e6a
22 files changed
+513
-58
No files matched your search
@@ -24,6 +24,7 @@
|
||||
// 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