codetech / laravel-sluggable
A Laravel package that allows you to assign settings to your models.
v0.1.0
2021-03-27 09:20 UTC
Requires
- php: ^7.2|^8.0
- illuminate/http: ^6.0|^7.0|^8.0
- illuminate/routing: ^6.0|^7.0|^8.0
- illuminate/support: ^6.0|^7.0|^8.0
This package is auto-updated.
Last update: 2025-05-11 14:37:04 UTC
README
Laravel Sluggable
Laravel package for managing models' slugs.
Installation
Add the package to your Laravel app using composer
composer require codetech/laravel-sluggable
Service Provider
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,
...
];
Usage
Use the trait in your models.
use CodeTech\Sluggable\Traits\HasSlug;
class Theme extends Model
{
use HasSlug;
...
License
codetech/laravel-sluggable is open-sourced software licensed under the MIT license.
About CodeTech
CodeTech is a web development agency based on Matosinhos, Portugal. Oh, and we LOVE Laravel!