davibennun / laravel-raygun
Laravel wrapper for raygun
Installs: 149 298
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 7
Open Issues: 5
Requires
- php: >=5.3.0
- illuminate/support: ~4.0
- mindscape/raygun4php: 1.*
This package is not auto-updated.
Last update: 2024-12-21 16:01:27 UTC
README
Update your composer.json
file to include this package as a dependency
Laravel 4
"davibennun/laravel-raygun": "dev-master"
Laravel 5
"davibennun/laravel-raygun": "dev-laravel5"
Register the Raygun service provider by adding it to the providers array.
Davibennun\LaravelRaygun\LaravelRaygunServiceProvider
Alias the Raygun facade by adding it to the aliases array.
'aliases' => array( 'Raygun' => 'Davibennun\LaravelRaygun\Facades\Raygun' )
Configuration
Copy the config file into your project by running
Laravel 4
php artisan config:publish davibennun/laravel-raygun
Laravel 5
php artisan vendor:publish --provider="Davibennun\LaravelRaygun\LaravelRaygunServiceProvider" --tag="config"
Edit the config file to include your app ID and secret key.
Usage
This Raygun class extends the Raygun PHP, so all the methods listed here http://github.com/MindscapeHQ/raygun4php are available.
App::error(function(Exception $exception) { Raygun::sendException($exception); });