Skip to content

Commit

Permalink
Merge pull request #1739 from solomon-ochepa/patch-48
Browse files Browse the repository at this point in the history
Update resource-collection.stub
  • Loading branch information
dcblogdev authored Feb 12, 2024
2 parents a678c2b + 924bddd commit 54153d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/stubs/resource-collection.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

namespace $NAMESPACE$;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\ResourceCollection;

class $CLASS$ extends ResourceCollection
{
/**
* Transform the resource collection into an array.
*/
public function toArray($request): array
public function toArray(Request $request): array
{
return parent::toArray($request);
}
Expand Down

0 comments on commit 54153d5

Please sign in to comment.