PHPackages                             sukohi/whoops-report - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. sukohi/whoops-report

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

sukohi/whoops-report
====================

1.0.1(10y ago)116PHPPHP &gt;=5.4.0

Since Dec 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/WhoopsReport)[ Packagist](https://packagist.org/packages/sukohi/whoops-report)[ RSS](/packages/sukohi-whoops-report/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

WhoopsReport
============

[](#whoopsreport)

A Laravel package to send a report when occurring bug.(for Laravel 4.2)

[![Whoops Report](https://camo.githubusercontent.com/f84914e33f6d6a9730b548d5981650a7513b9cd1db52354e3024f92759d8bbd2/687474703a2f2f692e696d6775722e636f6d2f7947346172486b2e706e67)](https://camo.githubusercontent.com/f84914e33f6d6a9730b548d5981650a7513b9cd1db52354e3024f92759d8bbd2/687474703a2f2f692e696d6775722e636f6d2f7947346172486b2e706e67)

Installation
============

[](#installation)

Add this package name in composer.json

```
"require": {
  "sukohi/whoops-report": "1.*"
}

```

Execute composer command.

```
composer update

```

Register the service provider in app.php

```
'providers' => array(
    ...Others...,
    'Sukohi\WhoopsReport\WhoopsReportServiceProvider',
)

```

Also alias

```
'aliases' => array(
    ...Others...,
    'WhoopsReport' => 'Sukohi\WhoopsReport\Facades\WhoopsReport',
)

```

Preparation
===========

[](#preparation)

Set routes in your routes.php

(in routes.php)

```
Route::post('whoops-report', array('as' => 'whoops-report', function()
{
    return WhoopsReport::send('YOUR-MAIL@example.com');
}));

App::error(function(Exception $exception, $code)
{
    return WhoopsReport::view($exception);
});

```

That's all.

About cc and bcc
================

[](#about-cc-and-bcc)

You also can set cc and/or bcc email addresses like this.

```
return WhoopsReport::send('YOUR-MAIL@example.com', [
	'cc' => ['cc1@example.com'],
	'bcc' => ['bcc1@example.com'],
]);

```

Locale
======

[](#locale)

If you'd like to use language except English, you need to set a lang file like this.

(in case of Japanese)

`app/lang/packages/ja/whoops-report/message.php`

```
