D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
mikyal.online
/
app
/
Http
/
Resources
/
Filename :
ProductTagResource.php
back
Copy
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class ProductTagResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request): array { return [ "id" => $this->id, "product_id" => $this->product_id, "name" => $this->name, ]; } }