PHP code example of islomiddin-dev / unique-slug-generator

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

    

islomiddin-dev / unique-slug-generator example snippets


IslomiddinDev\Providers\HelperServiceProvider::class,

slug(modelClass: Post::class, attribute: 'title', name: $request->title);

//name: Unique Slug Generator
//output: unique-slug-generator

//name: Unique Slug Generator
//output: unique-slug-generator-1