PHP code example of ryangjchandler / laravel-slug
1. Go to this page and download the library: Download ryangjchandler/laravel-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/ */
ryangjchandler / laravel-slug example snippets
use RyanChandler\Slug\Concerns\HasSlug;
class Post extends Model
{
use HasSlug;
}
use RyanChandler\Slug\Concerns\HasSlug;
use RyanChandler\Slug\Attribute\Slug;
#[Slug(source: 'name', column: 'my_slug')]
class Post extends Model
{
use HasSlug;
}