Powerful string helpers:
Common Methods
Str::slug('Laravel Framework'); // laravel-framework
Str::title('hello world'); // Hello World
Str::camel('foo_bar'); // fooBar
Str::kebab('fooBar'); // foo-barFluent Strings
$result = Str::of(' Laravel ')
->trim()
->lower()
->slug();Useful Methods
Str::limit('Long text...', 10);
Str::words('Many words here', 2);
Str::mask('secret', '*', 2); // se****
Str::uuid();Conditionals
Str::contains('Laravel', 'ara'); // true
Str::startsWith('Laravel', 'Lar'); // true