| Package Data | |
|---|---|
| Maintainer Username: | nWidart |
| Maintainer Contact: | n.widart@gmail.com (Nicolas Widart) |
| Package Create Date: | 2013-06-12 |
| Package Last Update: | 2014-09-20 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-20 03:01:32 |
| Package Statistics | |
|---|---|
| Total Downloads: | 458 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 14 |
| Total Watchers: | 1 |
| Total Forks: | 3 |
| Total Open Issues: | 0 |
HttpStatus is a small package that adds pretty error pages.
It listens at App::error() and App::down() to provide error pages.
Note that these error pages will only show when debug is set to true.
Add nwidart/httpstatus as a requirement to composer.json:
{
...
"require": {
...
"nwidart/httpstatus": "dev-master"
},
}
Update composer:
$ php composer.phar update
Add 'Nwidart\Httpstatus\HttpstatusServiceProvider' to your app/config/app.php file in the providers array.
(Optional) Publish package config:
$ php artisan config:publish nwidart/httpstatus
After the configuration file has been published you can return your own error views. You can provide a view for each error:
return array(
'views' => array(
'403' => 'errors.your403',
'404' => 'errors.your404',
'500' => 'errors.your500',
'503' => 'errors.your503',
)
);
It's inspired by Traffic-Signs