laravel helper str_slug code example
Example 1: laravel str::random
use Illuminate\Support\Str;
$random = Str::random(40);
Example 2: laravel slug
php artisan vendor:publish --provider="Cviebrock\EloquentSluggable\ServiceProvider"
Example 3: laravel helper
use Illuminate\Support\Str;
$length = Str::length('Laravel');
// 7