1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/you-can-call-squish-on-stringable-instances-to-remove-all-unnecessary-whitespaces.md
Samuel Štancl a2adc750ad Week 14
2022-04-09 02:35:20 +02:00

11 lines
No EOL
628 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 'You can call `squish()` on Stringable instances to remove all unnecessary whitespaces'
tweet_id: '1512463789215477763'
thread_slug: weekly-thread-2022-14
author_username: mattkingshott
images:
- 'https://pbs.twimg.com/media/FPqzjjnWUAAolDJ.jpg'
created_at: 2022-04-08T16:14:02+00:00
slug: you-can-call-squish-on-stringable-instances-to-remove-all-unnecessary-whitespaces
---
🔥 #Laravel Tip: Hot off the press, the latest release includes the squish global helper method by @DwightConrad. It removes all extraneous white space from a string, including between words. Its like trim on steroids :)