Str slug laravel
snippet in php

Str slug laravel

user6071

use Illuminate\Support\Str;

$slug = Str::slug('Laravel 5 Framework', '-');

// laravel-5-framework

laravel slug

user4932

$ composer require cviebrock/eloquent-sluggable

laravel slug

user5048

php artisan vendor:publish --provider="Cviebrock\EloquentSluggable\ServiceProvider"