dev-master
9999999-devHttpStatus is a small package that adds pretty error pages.
MIT
The Requires
- php >=5.3.0
- illuminate/support 4.*|5.*
laravel 404 httpstatus error pages
Wallogit.com
2017 © Pedro Peláez
HttpStatus is a small package that adds pretty error pages.
HttpStatus is a small package that adds pretty error pages., (*2)
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., (*3)
Add nwidart/httpstatus as a requirement to composer.json:, (*4)
{
...
"require": {
...
"nwidart/httpstatus": "dev-master"
},
}
Update composer:, (*5)
$ php composer.phar update
Add 'Nwidart\Httpstatus\HttpstatusServiceProvider' to your app/config/app.php file in the providers array., (*6)
(Optional) Publish package config:, (*7)
$ 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:, (*8)
return array(
'views' => array(
'403' => 'errors.your403',
'404' => 'errors.your404',
'500' => 'errors.your500',
'503' => 'errors.your503',
)
);
It's inspired by Traffic-Signs, (*9)
HttpStatus is a small package that adds pretty error pages.
MIT
laravel 404 httpstatus error pages