Download the PHP package ptdot/errormessage without Composer
On this page you can find all versions of the php package ptdot/errormessage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ptdot/errormessage
More information about ptdot/errormessage
Files in ptdot/errormessage
Package errormessage
Short Description Laravel simple error message display from exception
License MIT
Homepage https://github.com/pt-dot/laravel-error-message
Informations about the package errormessage
Laravel Error Message Displayer
Sometimes in development mode, you want to display exception message to know what happened to your web application. But in production environment, you may want to display general message instead of direct exception message. Laravel error message displayer is a package for displaying exception message or trace string based on APP_DEBUG
condition.
Requirements
- php 7.0+
- Laravel 5.5+
Installation
Install package through composer.
Next, if using Laravel under 5.5, include the service provider and Facade within your config/app.php
file.
Since Laravel 5.5+ is using Package Discovery, there is no need manually insert service provider and facade inside your app.php
.
Configuration
Publish config using command:
Set your default error message in config/errormessage.php
.
Basic Usage
You may use this package to handle exception display through your REST API or flash message.
If you want to debug and need display traceAsString
option, you may call traceAsString()
method:
Want to override default message? Don't worry this package is able to do that.
Contributing
Feel free to report an issue or merge request if you want to help this package become better and useful.