wzulfikar/check-rollbar-limit

There is no license information available for the latest version (0.0.1) of this package.

Naive artisan command to check rollbar limit

0.0.1 2017-03-13 19:45 UTC

This package is not auto-updated.

Last update: 2024-11-10 05:29:55 UTC


README

Artisan command to check rollbar limit

  • setup rollbar access token in config/services.php
  • add service provider of this package in your config/app.php
'providers' => [
    // .. other providers
    Wzulfikar\CheckRollbarLimit\CheckRollbarLimitServiceProvider::class,
];
  • run php artisan rollbar:check-limit

The command will send post request to rollbar and check if the request was rejected because of limit exceeded. And if so, event \Wzulfikar\CheckRollbarLimit\RollbarLimitExceededEvent::class will be triggered.

To listen to above event, you can add listener in you EventServiceProviders.php. Something like:

// app/Providers/EventServiceProvider.php
protected $listen = [
    \Wzulfikar\CheckRollbarLimit\RollbarLimitExceededEvent::class => [
        // put your listener here
    ],
];