Skip to content

Commit

Permalink
update make resource for category actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Jan 19, 2025
1 parent 41f6716 commit 7692483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/CategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function findBySlug(string $slug): JsonResponse|RedirectResponse|JsonReso

return $this
->httpResponse()
->setData(new ListCategoryResource($category))
->setData(ListCategoryResource::make($category))

Check failure on line 72 in src/Http/Controllers/CategoryController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.1

Call to an undefined static method CSlant\Blog\Api\Http\Resources\ListCategoryResource::make().

Check failure on line 72 in src/Http/Controllers/CategoryController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.2

Call to an undefined static method CSlant\Blog\Api\Http\Resources\ListCategoryResource::make().

Check failure on line 72 in src/Http/Controllers/CategoryController.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.4

Call to an undefined static method CSlant\Blog\Api\Http\Resources\ListCategoryResource::make().
->toApiResponse();
}
}

0 comments on commit 7692483

Please sign in to comment.