1. Go to this page and download the library: Download vlinde/laravel-bugster 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/ */
vlinde / laravel-bugster example snippets
public function renderForConsole($output, Throwable $e)
{
$bugster = new BugsterLoadBugs();
$bugster->saveError($output, $e, null, 'TERMINAL');
parent::renderForConsole($output, $e);
}
public function render($request, Throwable $e)
{
$render = parent::render($request, $e);
$bugster = new BugsterLoadBugs;
$bugster->saveError($request, $e, $render->getStatusCode());
return $render;
}