Add post comments with moderation plus view/like interaction endpoints
Deploy Backend / deploy (push) Successful in 2m41s

- blog_comments table + Comment model/factory; comments attach to the post,
  public list shows approved rows only, public submission starts unapproved
- Admin moderation API: list/filter, approve, delete comments
- Public POST posts/{slug}/view and posts/{slug}/like toggle counters
- Route groups: comments throttled like the contact form, interactions at
  60/min; comments resource exposed to the generic admin list
This commit is contained in:
Parsa Aghayi committed 2026-10-02 11:06:06 -04:00
1 parent fbacb0c9a1
commit e98807da05
11 files changed
+497

No files matched your search

@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Api\Admin;
use App\Http\Controllers\Controller;
use App\Models\Blog\Category;
use App\Models\Blog\Comment;
use App\Models\Blog\Post;
use App\Models\Blog\Tag;
use App\Models\Website\AboutMe;
@@ -26,6 +27,7 @@ class AdminResourceController extends Controller
'projects' => Project::class,
'project-categories' => ProjectCategory::class,
'about-me' => AboutMe::class,
'comments' => Comment::class,
];
/**
@@ -39,6 +41,7 @@ class AdminResourceController extends Controller
'projects' => ['category'],
'skills' => ['aboutMe'],
'testimonials' => ['translations'],
'comments' => ['post'],
];
/**