Um pacote Laravel para atribuir URLs amigáveis aos modelos Eloquent.
Funcionalidades
Add the package to your Laravel app using composer
composer require codetech/laravel-sluggable
Register the package's service provider in config/app.php. In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled.
'providers' => [
...
Codetech\Sluggable\Providers\SluggableServiceProvider::class,
...
];
Use the trait in your models.
use CodeTech\Sluggable\Traits\HasSlug;
class Theme extends Model
{
use HasSlug;
...
codetech/laravel-sluggable is open-sourced software licensed under the MIT license.
Visite a página do repositório no GitHub para mais informações sobre este projeto Open Source.