PHP code example of ping-qu / laravel-exception
1. Go to this page and download the library: Download ping-qu/laravel-exception 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/ */
ping-qu / laravel-exception example snippets
angular2html
public function report(Exception $exception)
{
if (PHP_SAPI == 'cli'){
parent::report($exception);
}else{
\Pingqu\ExceptionHandler::exception_handler($exception);
}
}