PHP code example of smart-contact / sc-utils
1. Go to this page and download the library: Download smart-contact/sc-utils library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
smart-contact / sc-utils example snippets
bash
class Handler extends \SmartContact\Responses\Exceptions\Handler
{
...
//only if you add custom exceptions
public function register()
{
$this->setOverride(true);
...
Other Report And Render
...
$this->renderable(function (\ErrorException $e) {
return response($this->retrieveResponse($e), 500);
});
}
}