Based on https://dotdev.co/creating-unique-title-slugs-with-laravel/
The laravel-unique-slug generate a unique slug in your application on an eloquent model with have slug column.
Require the vitorleonel/laravel-unique-slug package in your composer.json and update your dependencies:
$ composer require vitorleonel/laravel-unique-slugAdd the ServiceProvider to your config/app.php providers array:
VitorLeonel\UniqueSlug\UniqueSlugServiceProvider::class,Released under the MIT License.