From 4646f9f4f5eca2273774ba79663e97322ebebcd7 Mon Sep 17 00:00:00 2001 From: Solomon Ochepa Date: Fri, 20 Oct 2023 16:47:24 -0700 Subject: [PATCH] Update resource.stub Format to the current Laravel standard. --- src/Commands/stubs/resource.stub | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Commands/stubs/resource.stub b/src/Commands/stubs/resource.stub index 6a1f18390..3ba4b154d 100644 --- a/src/Commands/stubs/resource.stub +++ b/src/Commands/stubs/resource.stub @@ -8,11 +8,8 @@ class $CLASS$ extends JsonResource { /** * Transform the resource into an array. - * - * @param \Illuminate\Http\Request - * @return array */ - public function toArray($request) + public function toArray($request): array { return parent::toArray($request); }