for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\Resource;
class GalaxyTypeResource extends Resource
{
public function toArray($request)
return [
'id' => $this->id,
id
App\Http\Resources\GalaxyTypeResource
__get
'name' => $this->name,
name
'display_name' => $this->display_name,
display_name
'updated_at' => $this->updated_at->format('Y-m-d H:i:s'),
updated_at
];
}