Skip to content

Commit

Permalink
Merge pull request #1738 from solomon-ochepa/patch-47
Browse files Browse the repository at this point in the history
Update resource.stub
  • Loading branch information
dcblogdev authored Feb 12, 2024
2 parents 54153d5 + 8718595 commit f930efd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/stubs/resource.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\JsonResource;

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

0 comments on commit f930efd

Please sign in to comment.