Используйте Str Laravel

use Illuminate\Support\Str
Mohamad