Begin by installing this package through Composer.
Edit your project's composer.json
file to require dinesh/bugonemail
.
"require": {
"laravel/framework": "5.*",
"dinesh/bugonemail": "5.*@dev"
}
NOTICE: For Laravel 4.x use
- 1.x Releases
- 4.x Branch
Next, update Composer from the Terminal:
composer update
Once this operation completes, the next step is to add the service provider. Open app/config/app.php
, and add a new item to the providers array.
'Dinesh\Bugonemail\BugonemailServiceProvider'
Next, you need to publish it's config file(s).
php artisan config:publish dinesh/bugonemail
Now change Config file.
return array(
'project_name' => '? ',
'notify_emails' => array('[email protected]'),
'email_template' => "bugonemail::email.notifyException",
'notify_environment' => array('local','production'),
'prevent_exception' => array('Symfony\Component\HttpKernel\Exception\NotFoundHttpException'),
);
Manually Call
BugeException::notifyException($exception)
Manually set environment
BugeException::setEnvironment("local")
Email like