use sluggable in laravel code example Example: laravel sluggable $ composer require cviebrock/eloquent-sluggable