GithubHelp home page GithubHelp logo

laravel-whoops's Introduction

Whoops for Laravel 5

Unlike previous versions, Laravel 5 doesn't come with Whoops error handling out of the box. To get this awesome error handler back in Laravel 5, I created this package that hooks your application up with Whoops once again.

Installation

First open up a console in your project root and let composer fetch Whoops for you

composer require guidovanbiemen/laravel-whoops

Now go into your config/app.php and add the service provider:

'Gvb\Whoops\ServiceProvider',

Thats it! Enjoy your errors :)

Troubleshooting

Not seeing any difference? Either there was no error (hooray!) or you've got debugging disabled, which means laravel will (and should) not disclose any details regarding the error that has occurred.

To enable Whoops, open up your 'config/app.php' configuration file, find the debug setting and change it into true. As soon as you encounter an error, you should be able to tell the difference pretty easily.

What about AJAX requests?

Whenever an AJAX request triggers the error handler, it will be recognized and the so called PrettyPageHandler will be exchanged for a JsonResponseHandler that returns a JSON response that you can parse on the client side.

Authors

This integration package was created by Guido van Biemen, but of course credits for Whoops itself go where they are due:

laravel-whoops's People

Contributors

hippolin avatar

Watchers

James Cloos avatar  avatar

Forkers

gapessoa

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.