Support the ongoing development of Laravel.io →
Views Blade

Hello, I don't know if anybody else asked in the past, please link to thread if so, could somebody recommend me a package that removes the white-spaces of the HTML response?

Thanks

Last updated 3 years ago.
0

you can look into https://github.com/webciter/RemoveExcessWhitespaceMiddleware as a middleware.

there were some issues with class names but maybe it's fixed now.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.