Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.9 KB

readme.md

File metadata and controls

53 lines (34 loc) · 1.9 KB

Installation

Latest Stable Version Total Downloads Latest Unstable Version License Build Status

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('your-email@gmail.com'),
        '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

whoops there was an error