Blade Formatting in Laravel Pint 1.30.0 | Mohamed Said        [  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png)   Mohamed Said Laravel Backend Engineer  ](https://msaied.com) [ Home ](https://msaied.com) [ Projects ](https://msaied.com/projects) [ Articles  ](https://msaied.com/articles) [ Certificates ](https://msaied.com/certificates) [ Contact ](https://msaied.com#contact-section) 

       [  ](https://github.com/EG-Mohamed)       

 [ Home ](https://msaied.com) [ Projects ](https://msaied.com/projects) [ Articles ](https://msaied.com/articles) [ Certificates ](https://msaied.com/certificates) [ Contact ](https://msaied.com#contact-section) 

  [ home ](https://msaied.com)    [ articles ](https://msaied.com/articles)    Blade Formatting in Laravel Pint 1.30.0        On this page       1. [  Blade Formatting Arrives in Laravel Pint 1.30.0 ](#blade-formatting-arrives-in-laravel-pint-1300)
2. [  Enabling Blade Formatting ](#enabling-blade-formatting)
3. [  Node-Based Formatting and npm Dependencies ](#node-based-formatting-and-npm-dependencies)
4. [  What Gets Formatted — and What Doesn't ](#what-gets-formatted-and-what-doesnt)
5. [  Other Improvements in 1.30.0 ](#other-improvements-in-1300)
6. [  Upgrading ](#upgrading)
7. [  Key Takeaways ](#key-takeaways)

  ![Blade Formatting in Laravel Pint 1.30.0](https://cdn.msaied.com/491/0d9d324af50d34725a26619b9b64f270.png)

 [  Laravel ](https://msaied.com/articles?category=laravel)  #Laravel Pint   #Blade   #Code Formatting   #Prettier   #Tailwind CSS  

 Blade Formatting in Laravel Pint 1.30.0 
=========================================

     29 Jul 2026      3 min read    ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said  

       Table of contents

1. [  01   Blade Formatting Arrives in Laravel Pint 1.30.0  ](#blade-formatting-arrives-in-laravel-pint-1300)
2. [  02   Enabling Blade Formatting  ](#enabling-blade-formatting)
3. [  03   Node-Based Formatting and npm Dependencies  ](#node-based-formatting-and-npm-dependencies)
4. [  04   What Gets Formatted — and What Doesn't  ](#what-gets-formatted-and-what-doesnt)
5. [  05   Other Improvements in 1.30.0  ](#other-improvements-in-1300)
6. [  06   Upgrading  ](#upgrading)
7. [  07   Key Takeaways  ](#key-takeaways)

 Blade Formatting Arrives in Laravel Pint 1.30.0
-----------------------------------------------

Laravel Pint 1.30.0 ships a long-requested feature: first-class formatting support for `.blade.php` templates. Powered by Prettier and the `prettier-plugin-blade` plugin, the new `Pint/laravel_blade` rule brings consistent, automated formatting to your Blade views without requiring a separate toolchain setup.

### Enabling Blade Formatting

The quickest way to try it is the new `--blade` flag:

```bash
./vendor/bin/pint --blade

```

To make it permanent, add the rule to your `pint.json`:

```json
{
    "rules": {
        "Pint/laravel_blade": true
    }
}

```

When the rule is disabled (the default), Pint excludes `*.blade.php` files entirely — exactly the behaviour of every previous release. Enabling it routes only `.blade.php` files through the Blade formatter, leaving your PHP files on the existing PHP-CS-Fixer pipeline.

### Node-Based Formatting and npm Dependencies

Blade formatting runs on Node, not PHP. Before doing any work, Pint checks for three npm packages at the required versions:

- `prettier` (`^3.8.4`)
- `prettier-plugin-blade` (`^3.2.2`)
- `prettier-plugin-tailwindcss` (`^0.8.0`)

If Node is absent, Pint aborts with a clear explanation. If the packages are missing, Pint detects your package manager, prompts you to install them, and pins each one to the required constraint. If installed versions are out of range, Pint prints the exact install command needed to resolve the mismatch.

### What Gets Formatted — and What Doesn't

The formatter handles a wide surface area: Alpine attributes, Livewire `wire:` bindings, Flux components, Tailwind class sorting, `@verbatim` blocks, heredocs, inline SVG, and single-file component classes.

Three categories of Blade file are intentionally skipped even when the rule is on, because reformatting them would alter their output or meaning:

- Envoy task files (`Envoy.blade.php`, `envoy.blade.php`)
- Boost guideline files under `resources/boost/guidelines/`
- Mail views under `resources/views/emails/` and `resources/views/mail/`

### Other Improvements in 1.30.0

**Renamed files in `--diff`**The `--diff` option previously used `--diff-filter=AM`, silently skipping files that were renamed before pushing. The filter is now `--diff-filter=AMR`, covering added, modified, and renamed files across committed, staged, and unstaged diff commands.

**`--quiet` writes issues to stderr**`--quiet` was behaving like `--silent`, dropping style violations entirely. Issues now go to stderr so stdout stays clean, the exit code still reflects the result, and you can still read the list of offending files.

**`in` key in `pint.json`**You can now restrict which directories Pint scans directly from `pint.json`, making it easier to migrate from a `.php-cs-fixer.php` config without passing paths on the command line every time.

### Upgrading

There are no breaking changes. Blade formatting is fully opt-in, and existing configurations continue to work as before. Update via Composer:

```bash
composer update laravel/pint

```

### Key Takeaways

- Use `--blade` or `"Pint/laravel_blade": true` in `pint.json` to enable Blade formatting.
- Formatting is powered by Prettier; Node and three npm packages are required.
- Pint auto-detects your package manager and can install missing dependencies for you.
- Alpine attributes, Livewire bindings, Flux components, and Tailwind class sorting are all supported.
- Envoy, Boost guideline, and mail view files are excluded automatically.
- `--diff` now correctly handles renamed files with `--diff-filter=AMR`.
- `--quiet` now routes violations to stderr instead of silently dropping them.

---

*Source: [Blade Formatting in Laravel Pint — Laravel News](https://laravel-news.com/blade-formatting-in-laravel-pint)*

 Found this useful?

          [  ](https://twitter.com/intent/tweet?url=https%3A%2F%2Fmsaied.com%2Farticles%2Fblade-formatting-in-laravel-pint-1300&text=Blade+Formatting+in+Laravel+Pint+1.30.0) [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fmsaied.com%2Farticles%2Fblade-formatting-in-laravel-pint-1300) 

 Frequently Asked Questions 
----------------------------

  3 questions  

     Q01  Does enabling Blade formatting in Pint require any Node.js dependencies?        Yes. Blade formatting runs on Node, not PHP. Pint requires `prettier` (^3.8.4), `prettier-plugin-blade` (^3.2.2), and `prettier-plugin-tailwindcss` (^0.8.0). If they are missing, Pint detects your package manager and offers to install them automatically. 

      Q02  Will upgrading to Pint 1.30.0 automatically format my Blade files?        No. Blade formatting is fully opt-in. You must either pass the `--blade` flag on the command line or add `"Pint/laravel_blade": true` to your `pint.json`. Without that, `.blade.php` files are excluded exactly as they were in all previous versions. 

      Q03  Which Blade files does Pint skip even when the Blade rule is enabled?        Pint skips Envoy task files (`Envoy.blade.php` / `envoy.blade.php`), Boost guideline files under `resources/boost/guidelines/`, and mail views under `resources/views/emails/` and `resources/views/mail/`, because reformatting them could change their output or meaning. 

  Continue reading

 More Articles 
---------------

 [ View all    ](https://msaied.com/articles) 

 [ ![Pest 5 Released: Test Impact Analysis, Agent Verification, and Evals](https://cdn.msaied.com/493/a1d6434093b945e8a3291eb09c09e768.png) Pest PHP Testing PHP 8.4 

### Pest 5 Released: Test Impact Analysis, Agent Verification, and Evals

Pest v5 lands with the TIA engine that cut Laravel Cloud's 19,000-test suite from 3 minutes to 5 seconds, plus...

  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said 

 31 Jul 2026     4 min read  

  Read    

 ](https://msaied.com/articles/pest-5-released-test-impact-analysis-agent-verification-and-evals) [ ![Job Batching, Chaining, and Rate-Limited Middleware in Laravel Queues](https://cdn.msaied.com/489/89d47dc6b618d5435f9d7f333b75e922.png) laravel queues jobs 

### Job Batching, Chaining, and Rate-Limited Middleware in Laravel Queues

Go beyond basic dispatch: learn how to compose Laravel job batches with callbacks, chain dependent jobs safely...

  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said 

 30 Jul 2026     4 min read  

  Read    

 ](https://msaied.com/articles/job-batching-chaining-and-rate-limited-middleware-in-laravel-queues-3) [ ![Laravel Observers vs. Model Events: Choosing the Right Hook for Domain Side-Effects](https://cdn.msaied.com/488/451564d0a43aa33809619fa299027222.png) laravel eloquent domain-events 

### Laravel Observers vs. Model Events: Choosing the Right Hook for Domain Side-Effects

Model events and observers look similar but behave differently under bulk operations, transactions, and test i...

  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said 

 30 Jul 2026     4 min read  

  Read    

 ](https://msaied.com/articles/laravel-observers-vs-model-events-choosing-the-right-hook-for-domain-side-effects) 

   [  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png)   Mohamed Said Laravel Backend Engineer  ](https://msaied.com)Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

Explore

- [Home](https://msaied.com)
- [Projects](https://msaied.com/projects)
- [Articles](https://msaied.com/articles)
- [Certificates](https://msaied.com/certificates)
- [Contact](https://msaied.com#contact-section)

Connect

- [   hello@msaied.com ](mailto:hello@msaied.com)
- [   +20 109 461 9204 ](tel:+201094619204)

© 2026 Mohamed Said. All rights reserved.

 [  ](https://github.com/EG-Mohamed) [  ](https://www.linkedin.com/in/msaiedm/) [  ](https://wa.me/201094619204) [  ](mailto:hello@msaied.com) [  ](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)
