for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Exceptions;
use Exception;
class ApiException extends Exception
{
public function render()
return [
'code' => 500,
'message' => $this->message,
];
}