TIP 68 / 73

New Squish Helper.

New in Laravel from 9.7 squish helper.

php
$result = Str::squish(' Hello   John,         how   are   you?    ');
// Hello John, how are you?