PHP code example of hellohasan / laravel-slugable

1. Go to this page and download the library: Download hellohasan/laravel-slugable 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/ */

    

hellohasan / laravel-slugable example snippets


use Hellohasan\LaravelSlugable\Facades\Slugable;

Slugable::generate(App\Model\EloquentModel::class,'input-value','slugable-column-name','separator');

Slugable::generate(App\Model\EloquentModel::class,'Hasan Rahman','slug','--');
// hasan--rahman

Slugable::generate(App\Model\EloquentModel::class,'Hasan Rahman','slug','--');
// hasan--rahman--1