1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +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

628 B
Raw Blame History

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
https://pbs.twimg.com/media/FPqzjjnWUAAolDJ.jpg
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. Its like trim on steroids :)