Crinsane / LaravelWhoopsCSS by Crinsane

Copy the custom Laravel Whoops resources to the vendor folder.
27
1
3
Package Data
Maintainer Username: Crinsane
Maintainer Contact: Rob_Gloudemans@hotmail.com (Rob Gloudemans)
Package Create Date: 2014-07-07
Package Last Update: 2014-07-07
Language: CSS
License: Unknown
Last Refreshed: 2024-12-16 15:00:51
Package Statistics
Total Downloads: 27
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 3
Total Forks: 0
Total Open Issues: 0

LaravelWhoopsCSS

Build Status

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"
]