Remove info about Whoops in Laravel

This commit is contained in:
Szymon Krajewski
2016-12-02 22:08:06 +01:00
parent 291979a101
commit 0819da2f2f

View File

@@ -131,9 +131,8 @@ PHP is perfectly capable of being an "exception-heavy" programming language, and
make the switch. Basically you can throw your "errors" as "exceptions" using the `ErrorException` class, which extends make the switch. Basically you can throw your "errors" as "exceptions" using the `ErrorException` class, which extends
the `Exception` class. the `Exception` class.
This is a common practice implemented by a large number of modern frameworks such as Symfony and Laravel. By default This is a common practice implemented by a large number of modern frameworks such as Symfony and Laravel. In debug
Laravel will display all errors as exceptions using the [Whoops!] package if the `app.debug` switch is turned on, then mode *(or dev mode)* both of these frameworks will display a nice and clean *stack trace*.
hide them if the switch is turned off.
By throwing errors as exceptions in development you can handle them better than the usual result, and if you see an By throwing errors as exceptions in development you can handle them better than the usual result, and if you see an
exception during development you can wrap it in a catch statement with specific instructions on how to handle the exception during development you can wrap it in a catch statement with specific instructions on how to handle the