SlugAPI module
The Slug Api is responsible for functionality surrounding URL aliases and short URLs. At its core it leverages Spatie Laravel Sluggable and the module is largely an abstraction for the functionality that package provides.
Usage
This module provides a HasModelSlug trait which should be used on your models instead of the HasSlug trait provided by Spatie Laravel Sluggable. It will include default configurations that ensure implementation is consistent.
namespace App\Models;
use Modules\SlugApi\HasSlug;
use Illuminate\Database\Eloquent\Model;
class YourEloquentModel extends Model
{
use HasModelSlug;
// The rest.
}