مساعدات نصوص قوية:
دوال شائعة
Str::slug('Laravel Framework'); // laravel-framework
Str::title('hello world'); // Hello World
Str::camel('foo_bar'); // fooBar
Str::kebab('fooBar'); // foo-barنصوص سلسة
$result = Str::of(' Laravel ')
->trim()
->lower()
->slug();دوال مفيدة
Str::limit('نص طويل...', 10);
Str::words('كلمات كثيرة هنا', 2);
Str::mask('secret', '*', 2); // se****
Str::uuid();الشروط
Str::contains('Laravel', 'ara'); // true
Str::startsWith('Laravel', 'Lar'); // true