Skip to content

Commit

Permalink
Update resource.stub
Browse files Browse the repository at this point in the history
Bind incoming requests with Illuminate\Http\Request
  • Loading branch information
solomon-ochepa authored Feb 8, 2024
1 parent a678c2b commit 8718595
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 8718595

Please sign in to comment.