feat: fix test
This commit is contained in:
@@ -16,8 +16,11 @@ class PostReviewsResource extends JsonResource
|
||||
'id' => $this->id,
|
||||
'rating' => $this->rating,
|
||||
'comment' => $this->comment,
|
||||
'meal_post_id' => $this->meal_post_id,
|
||||
'user_id' => $this->user_id,
|
||||
'created_at' => $this->created_at,
|
||||
'updated_at' => $this->updated_at,
|
||||
'mealPost' => new MealPostsResource($this->whenLoaded('mealPost')),
|
||||
'user' => $this->whenLoaded('user', function (): ?array {
|
||||
if (! $this->user) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user