New in Laravel from 9.7 squish helper.
$result = Str::squish(' Hello John, how are you? ');
// Hello John, how are you?
New in Laravel from 9.7 squish helper.
$result = Str::squish(' Hello John, how are you? ');
// Hello John, how are you?