PHP code example of danpalmieri / laravel-slug-token
1. Go to this page and download the library: Download danpalmieri/laravel-slug-token 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/ */
danpalmieri / laravel-slug-token example snippets
return [
/**
* The length of the slug.
*/
'length' => 5,
/**
* The characters to randomize for the slug.
* Is recommended to not
use DanPalmieri\LaravelSlugToken\Traits\HasSlugToken;
class YourModel extends Model
{
use HasSlugToken; // Add this line