Editing: PostWithNoSource.php
<?php namespace Cviebrock\EloquentSluggable\Tests\Models; /** * Class PostWithNoSource * * A test model with no source field defined. * * @package Cviebrock\EloquentSluggable\Tests\Models */ class PostWithNoSource extends Post { /** * Return the sluggable configuration array for this model. * * @return array */ public function sluggable(): array { return [ 'slug' => [ 'source' => null ] ]; } }
Save
Back