From c7a6edefa096b14c37a36225fe2c1dbd30ba5a80 Mon Sep 17 00:00:00 2001 From: tanhongit Date: Thu, 5 Dec 2024 09:50:08 +0000 Subject: [PATCH] Fix styling --- src/Enums/StatusEnum.php | 2 ++ src/Http/Controllers/PostController.php | 2 +- src/Http/Resources/ListPostResource.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Enums/StatusEnum.php b/src/Enums/StatusEnum.php index 3aa6e03..e7237bd 100644 --- a/src/Enums/StatusEnum.php +++ b/src/Enums/StatusEnum.php @@ -12,6 +12,8 @@ class StatusEnum extends Enum { public const PUBLISHED = 'published'; + public const DRAFT = 'draft'; + public const PENDING = 'pending'; } diff --git a/src/Http/Controllers/PostController.php b/src/Http/Controllers/PostController.php index bf25617..55c52b0 100644 --- a/src/Http/Controllers/PostController.php +++ b/src/Http/Controllers/PostController.php @@ -16,7 +16,7 @@ class PostController extends BasePostController * * @param Request $request * - * @return \Botble\Base\Http\Responses\BaseHttpResponse|\Illuminate\Http\JsonResponse|RedirectResponse|JsonResource + * @return \Botble\Base\Http\Responses\BaseHttpResponse|\Illuminate\Http\JsonResponse|JsonResource|RedirectResponse */ public function index(Request $request) { diff --git a/src/Http/Resources/ListPostResource.php b/src/Http/Resources/ListPostResource.php index 0dfd65b..d4dc15e 100644 --- a/src/Http/Resources/ListPostResource.php +++ b/src/Http/Resources/ListPostResource.php @@ -2,10 +2,10 @@ namespace CSlant\Blog\Api\Http\Resources; +use Botble\Blog\Http\Resources\ListPostResource as BaseListPostResource; use Botble\Blog\Http\Resources\TagResource; use Botble\Blog\Models\Post; use Botble\Media\Facades\RvMedia; -use Botble\Blog\Http\Resources\ListPostResource as BaseListPostResource; /** * @mixin Post