gloudemans / laravel-whoops-css
Copy the custom Laravel Whoops resources to the vendor folder.
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Language:CSS
Requires
- php: >=5.4.0
- illuminate/console: ~4
- illuminate/support: ~4
This package is auto-updated.
Last update: 2024-12-06 09:42:09 UTC
README
Would you, like me, like to have the old orange Whoops error page back in you Laravel 4.2 application? This is the package for you!
Installation
Install the package through Composer. Edit your project's composer.json
file by adding:
"require": { "laravel/framework": "4.1.*", "gloudemans/laravel-whoops-css": "dev-master" }
Next, run the Composer update command from the Terminal:
composer update
Now all you have to do is add the service provider of the package and alias the package. To do this open your app/config/app.php
file.
Add a new line to the service providers
array:
'Gloudemans\LaravelWhoopsCSS\LaravelWhoopsCSSServiceProvider'
Now you have access to a new Artisan command to copy the orange css styles back to the Whoops resources directory:
php artisan whoops:copy
If you want to set your application up to update these styles every time Whoops is updated, add these commands to the post-install-cmd
and post-update-cmd
.
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan whoops:copy",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan whoops:copy",
"php artisan optimize"
]