for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Health\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
/**
* Health Resource
*
* @method string getState()
* @method array getChecks()
*/
class Health extends JsonResource
{
public function toArray($request)
return [
'status' => $this->getState(),
'checks' => new HealthCheckCollection($this->getChecks())
];
}