Implement Filtering and Commenting Features in Blog: Enhanced BlogController to support filtering posts by author, category, and tags. Added a storeComment method to handle comment submissions, including validation and success/error messaging. Updated blog views to display comments and improved layout for better user engagement.

This commit is contained in:
Ümit Tunç
2025-11-06 17:08:46 -03:00
parent 4bdcf66c99
commit 7563577aa8
5 changed files with 306 additions and 34 deletions
+19
View File
@@ -85,4 +85,23 @@ return [
'slug_unique' => 'This URL slug is already in use.',
'content_required' => 'Content field is required.',
'author_required' => 'Author field is required.',
// Blog post page
'by' => 'By',
'comments' => 'Comments',
'share' => 'Share',
'author' => 'Author',
'all_posts' => 'All Posts',
'you_might_also_like' => 'You Might Also Like',
'read_more' => 'Read More',
'reply' => 'Reply',
'share_thoughts' => 'Would you like to share your thoughts?',
'comment_form_description' => 'Your email address will not be published. Required fields are marked *',
'name' => 'Name',
'email' => 'Email',
'website' => 'Website',
'comment' => 'Comment',
'submit' => 'Submit',
'comment_submitted' => 'Your comment has been submitted. It will be published after approval.',
'comments_disabled' => 'Comments are disabled for this blog post.',
];
+19
View File
@@ -85,4 +85,23 @@ return [
'slug_unique' => 'Bu URL yolu zaten kullanılıyor.',
'content_required' => 'İçerik alanı zorunludur.',
'author_required' => 'Yazar alanı zorunludur.',
// Blog post page
'by' => 'Yazar',
'comments' => 'Yorum',
'share' => 'Paylaş',
'author' => 'Yazar',
'all_posts' => 'Tüm Yazılar',
'you_might_also_like' => 'Bunları da Beğenebilirsiniz',
'read_more' => 'Devamını Oku',
'reply' => 'Yanıtla',
'share_thoughts' => 'Düşüncelerinizi paylaşır mısınız?',
'comment_form_description' => 'E-posta adresiniz yayınlanmayacaktır. Zorunlu alanlar * ile işaretlenmiştir.',
'name' => 'Ad',
'email' => 'E-posta',
'website' => 'Web Sitesi',
'comment' => 'Yorum',
'submit' => 'Gönder',
'comment_submitted' => 'Yorumunuz gönderildi. Onaylandıktan sonra yayınlanacaktır.',
'comments_disabled' => 'Bu blog yazısında yorumlar devre dışı bırakılmıştır.',
];