Download the PHP package yocmen/sneaker without Composer
On this page you can find all versions of the php package yocmen/sneaker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yocmen/sneaker
More information about yocmen/sneaker
Files in yocmen/sneaker
Package sneaker
Short Description An easy way to send emails with stack trace whenever an exception occurs on the server for Laravel Applications.
License MIT
Informations about the package sneaker
Laravel Exception Notifications
An easy way to send emails with stack trace whenever an exception occurs on the server for Laravel Applications.
Install
Install via composer
Configure Laravel
Once installation operation is complete, simply add the service provider to your project's config/app.php
file:
Service Provider
Add Sneaker's Exception Capturing
Add exception capturing to app/Exceptions/Handler.php
:
Configuration File
Create the Sneaker configuration file with this command:
The config file will be published in config/sneaker.php
Following are the configuration attributes used for the sneaker.
silent
The package comes with 'silent' => true,
configuration by default, since you probably don't want error emailing enabled on your development environment. Especially if you've set 'debug' => true,
.
For sending emails when an exception occurs set SNEAKER_SILENT=false
in your .env
file.
capture
It contains the list of the exception types that should be captured. You can add your exceptions here for which you want to send error emails.
By default, the package has included Symfony\Component\Debug\Exception\FatalErrorException::class
.
You can also use '*'
in the $capture
array which will in turn captures every exception.
To use this feature you should add the following code in app/Exceptions/Handler.php
:
to
This is the list of recipients of error emails.
ignored_bots
This is the list of bots for which we should NOT send error emails.
Customize
If you need to customize the subject and body of email, run following command:
Note - Don't run this command again if you have run it already.
Now the email's subject and body view are located in the resources/views/vendor/sneaker
directory.
We have passed the thrown exception object $exception
in the view which you can use to customize the view to fit your needs.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Amit Gupta
- All Contributors
About Squareboat
Squareboat is a startup focused, product development company based in Gurgaon, India. You'll find an overview of all our open source projects on GitHub.
License
The MIT License. Please see SquareBoat
All versions of sneaker with dependencies
illuminate/support Version ~5.0
illuminate/view Version ~5.0
illuminate/config Version ~5.0
illuminate/mail Version ~5.0
illuminate/log Version ~5.0
symfony/debug Version ~2.7|~3.0
tijsverkoyen/css-to-inline-styles Version ^2.2