Skip to content

CodeTechAgency/laravel-sluggable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-sluggable-repo-banner

Laravel Sluggable

Laravel package for managing models' slugs.

Latest version GitHub license

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!