PHP code example of monirujjaman27 / unique-slug-generator

1. Go to this page and download the library: Download monirujjaman27/unique-slug-generator 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/ */

    

monirujjaman27 / unique-slug-generator example snippets


// import controller
use Monirujjaman27\UniqueSlugGenerator\Facades\SlugGenerator;

// Generate Slug
dd(SlugGenerator::generate(\App\Models\User::class,'generate slug', 'name'));

generate-slug
bash
php artisan vendor:publish --provider="Monirujjaman27\UniqueSlugGenerator\SlugGeneratorServiceProvider"