use IlluminateSupportStr;
$slug = Str::slug('Laravel 5 Framework', '-');
// laravel-5-framework
public function setTitleAttribute($value)
{
$this->attributes['title'] = $value;
$this->attributes['slug'] = str_slug($value);
}
$slug = Str::slug('Laravel 5 Framework', '-');
$slug = Str::slug($request->title);
php artisan vendor:publish --provider="CviebrockEloquentSluggableServiceProvider"