Laravel 5.8 Blade Template File Path

Tutorials

February 22nd, 2019

laravel-5-8-blade-template-path-1.png

Compiled blade templates in Laravel 5.8 will include the blade template path thanks to a contribution from Olga Strizhenko (@bzixilu) of JetBrains:

Nice 5.8 contribution from @bzixilu from Jetbrains to add the Blade template path to the top of compiled views… pic.twitter.com/oB35B1g6qt

— Taylor Otwell (@taylorotwell) February 18, 2019

This change provides the opportunity for Blade debugging in PhpStorm through mappings to the blade template. If you’re interested in following along, you can see the associated JetBrains issue WI-26476 – Enable php debugging in Blade file.

If you want to experiment with blade template paths, and other Laravel 5.8 features you can create a 5.8 project with:

laravel new --dev myproject

You’ll have something like the following template after you request the homepage:

With the release of Laravel 5.8 on the horizon, the documentation is taking shape and it would be an excellent idea to review Upgrading to 5.8 from 5.7.

Filed in:

Paul Redmond

Full stack web developer. Author of Lumen Programming Guide and Docker for PHP Developers.