Via Composer
$ composer require vlinde/laravel-bugster
Publish vendor for migrations then migrate
$ php artisan vendor:publish --tag=migrations
$ php artisan vendor:publish --tag=bugster.config
$ php artisan migrate
Add function to exception handler found in 'app/Exceptions/Handler.php'
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;
}
How to move data to SQL
$ php artisan bugster:movetosql
How to delete older bugs
$ php artisan bugster:delete
You can add these commands to cron
$schedule->command('bugster:movetosql')->daily('00:30');
$schedule->command('bugster:delete')->daily('01:00');
$schedule->command('bugster:notify:statistics')->dailyAt('12:00');
$schedule->command('bugster:count-status-codes')->dailyAt('03:00');
Register Bugster tool in NovaServiceProvider
use Vlinde\Bugster\Bugster;
public function tools()
{
return [
new Bugster;
];
}
Please see the changelog for more information on what has changed recently.
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email author email instead of using the issue tracker.
license. Please see the license file for more information.