Search code examples
laravelwhoops

Why does Whoops look different on my Laravel sometime?


I am playing with a non-standard Laravel application that I have built without the template (laravel new). I am quite new to this framework but I noticed that Whoops can take different shapes:

A minimal version:

enter image description here

The standard Whoops skin:

enter image description here

Or the tweaked orange skin:

enter image description here

What does influence these changes?


Solution

  • You likely have a duplicate whoops package installed, an old one or you have the old whoops css files somewhere.

    The orange colors are the old styles

    See this: https://github.com/vladshcherbin/whoops-orange-laravel-colors

    As for the 'minimal' picture you posted, if you look at:

    yourwebsitedirectory/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views/500.blade.php

    you'll see the text shown in the 'minimal' screenshot you posted so it's definitely Laravel's own 500 error page and not Whoops. (which confirms its not a 404 as well)