Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

LTroya's avatar
Level 19

Format Laravel blade files in PHPStorm

Hi guys,

I am looking for ways to enforce code style in blade components as we usually do with ESLint/Prettier.

Is there a way to achieve that in PHPStorm? I have seen a plugin for PHPStorm to accomplish this.

Thanks in advance. Luis.

0 likes
3 replies
CamKem's avatar

Install the prettier plugin for PhpStorm, there is a Larabit on here shows you how to do it. This should help -> Make it Prettier or If you want a more detailed overview of PhpStorm to learn the IDE better try this one out -> Be Awesome in PhpStorm I have completed the series & it's well worth the time to learn the tips & tricks that top end professional programmers use.

CamKem's avatar

Also, I highly recommend the Github Co-Pilot plugin, this will give you code completion & help you format your code to accepted conventions. Plus its free for one month so you can try it out & find out how great it is for free - then you won't be able to live without it (honestly it speeds up the learning x100)

LTroya's avatar
Level 19

Hi @camkem,

Sorry for my delay in the response. I should have clarified that I want a way to format in the code and enforce in any CI workflow, e.g, as we do nowadays with prettier and eslint.

Also, I will checkout the serie "Be awesome with PhpStorm", didn't know that exist.

Maybe using something like Laravel Duster (release a few days ago) is the answer I am looking for. Not sure yet.

My doubt with those tools is if they are enough to format javascript code (vue components, typescript files, etc), blade components, and PHP backend code.

Cheers.

Please or to participate in this conversation.