1. Go to this page and download the library: Download corazzi/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/ */
corazzi / sluggable example snippets
namespace Acme\Models;
use Illuminate\Database\Eloquent\Model;
use Corazzi\Sluggable\Sluggable;
class Post extends Model
{
use Sluggable;
}
namespace Acme\Models;
use Illuminate\Database\Eloquent\Model;
use Corazzi\Sluggable\Sluggable;
class Post extends Model
{
use Sluggable;
protected $slugOrigin = 'title';
protected $slugColumn = 'post_name';
}