mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
628 B
628 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| You can call `squish()` on Stringable instances to remove all unnecessary whitespaces | 1512463789215477763 | weekly-thread-2022-14 | mattkingshott |
|
2022-04-08T16:14:02+00:00 | 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. It’s like ‘trim’ on steroids :)