for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Modules\Reporting\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class Report extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
return [
'id' => $this->id,
'reportName' => $this->report_name,
'viewName' => $this->view_name,
'createdAt' => $this->created_at,
'updatedAt' => $this->updated_at,
];
}