--- 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. It’s like ‘trim’ on steroids :)