Home  >  Article  >  PHP Framework  >  Do you know what Laravel6’s new error interface looks like?

Do you know what Laravel6’s new error interface looks like?

藏色散人
藏色散人forward
2021-09-26 15:32:222109browse

The following is the tutorial column of Laravel to introduce you to the new error interface of Laravel 6. I hope it will be helpful to friends in need!

Do you know what Laravel6’s new error interface looks like?

As part of Laracon EU 2019, Freek van der Herten and Marcel Pociot jointly announced their latest open source expansion package - Ignition.

Ignition is the new default error page for Laravel 6.0, with some beautiful Laravel-specific features that make debugging exceptions and stack traces even more convenient! You might even like to intentionally throw an exception to see this nifty new Laravel debugging stack.

From Freek's detailed introduction to Ignition, he mentions how Ignition does some interesting framework-specific things to make stack traces easier to understand:

Ignition is a Laravel-specific error page. Therefore, it can mount framework-specific functionality to show uncompiled view paths and your Blade views... By default we also only show application frameworks, since those may be what you're interested in.

Do you know what Laravel6’s new error interface looks like?

As you can see on the screenshot, there are multiple tabs providing help regarding the request ,app/framework, user, context and debug. Select to view details about each of them. The

debug tab has a cool new feature that displays queries, logs, and dumps. When there is printing content, Ignition will also display relevant file name information. If you don’t want to display specific information, you can also use the original dd() command in the package!

In addition to debugging information, Ignition has an extra step to suggest help for common problems. For example, class or view path types will try to provide recommended solutions.

Do you know what Laravel6’s new error interface looks like?

Ignition comes standard with Laravel 6.0, and you can also install it in existing Laravel 5 applications. You can learn more about this package, get complete installation instructions, and view the source code on GitHub at facade/ignition.


The above is the detailed content of Do you know what Laravel6’s new error interface looks like?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete