PHP code example of rendyyangasli / laravel-unique-sluggable
1. Go to this page and download the library: Download rendyyangasli/laravel-unique-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/ */
rendyyangasli / laravel-unique-sluggable example snippets
return [
/*---------------------------------------
| Fill with our model class namespace |
----------------------------------------*/
'entities' => [
App\Entities\Post::class
]
];
use McHavens\LaravelUniqueSlugGenerator\UniqueSlugTrait;
class Post extends Model {
use UniqueSlugTrait;
}