laravel description substring
snippet in php

laravel description substring

user6839

{{Str::limit($category->name, 20)}}

if to end 
  
{{Str::limit($category->name, 20, $end='.......')}}
             
or
  
{{\Illuminate\Support\Str::limit($category->name, 20)}}     

laravel slug

user3569

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