PHP code example of jourdon / sluggable

1. Go to this page and download the library: Download jourdon/sluggable library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jourdon / sluggable example snippets


php artisan jourdon:make_slug Post

php artisan migrate

php artisan jourdon:make_cache Models/Post


use Jourdon\Sluggable\Traits\SlugTrait;

class Post extends Model
{
    use SlugTrait;
    .
    .
    .
}