Support the ongoing development of Laravel.io →
posted 10 years ago
Blade

Is there an easy way to debug the blade foreach and if statements and view the variables like XDebug? I'm using PHPStorm? Does any other IDE have this feature? How do I unit test blade templates?

Thank you and Father God bless<><

Last updated 3 years ago.
0

I always just display whatever I need to know. In good MVC implementations, you shouldn't have much logic going on in your templates, so you should be able to debug it from the controller.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

vkimura vkimura Joined 5 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.