feat: report reviews etc ...
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use App\Models\MealPosts;
|
||||
use App\Models\PostReviews;
|
||||
use App\Models\Report;
|
||||
use App\Models\User;
|
||||
use Illuminate\Http\Request;
|
||||
@@ -31,6 +32,7 @@ class ReportResource extends JsonResource
|
||||
{
|
||||
return match ($this->reportable_type) {
|
||||
MealPosts::class => 'meal_post',
|
||||
PostReviews::class => 'post_review',
|
||||
User::class => 'user',
|
||||
default => 'unknown',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user