for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PolarAdmin\Polar\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class PolarNotification extends JsonResource
{
public function toArray($request)
return [
'id' => $this->id,
'user_id' => $this->user_id,
'from' => $this->from,
'status' => $this->status,
'body' => $this->body,
'url' => $this->url,
'extra' => $this->extra,
'read' => $this->read,
'updated_at' => $this->updated_at,
'created_at' => $this->created_at,
];
}