PHP code example of raselrana / laravel-package-unique-slug

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

    

raselrana / laravel-package-unique-slug example snippets


$slug=UniqueSlug::generate(App\Models\User::class,'rasel','name');
 //Here pass 3 

 php artisan vendor:publish rasel/laravel-unique-slug
 

 return[

    'separator'=>'-',
    'max_count'=>100
]