Skip to content

Commit 4add553

Browse files
committed
feat: add more commands
1 parent 0a02e96 commit 4add553

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

stubs/resource.collection.stub

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace App\{{ application }}\Resources;
4+
5+
use Illuminate\Http\Resources\Json\ResourceCollection;
6+
7+
class {{ className }} extends ResourceCollection
8+
{
9+
/**
10+
* Transform the resource collection into an array.
11+
*
12+
* @param \Illuminate\Http\Request $request
13+
* @return array
14+
*/
15+
public function toArray($request)
16+
{
17+
return parent::toArray($request);
18+
}
19+
}

0 commit comments

Comments
 (0)