PHP code example of rickselby / laravel-exception-html

1. Go to this page and download the library: Download rickselby/laravel-exception-html 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/ */

    

rickselby / laravel-exception-html example snippets


$handler = new ExceptionHandler(true);
$html = $handler->getHtml($this->exception);

$handler = new ExceptionHandler(true);
$html = $handler->getHtml($this->exception, $extraHeadings);
html
<h3 class="exception-message">{$this->request->method()} {$this->request->fullUrl()}</h3>