How to remove all redundant spaces from a string with Laravel
New minor version of Laravel Framework (9.7) has brought us a beautiful new string helper Str::squish. It removes all extra white spaces from a string, including between words. It’s like super-powered trim method.