-
-
Save cursosdesarrolloweb/79df1777062d355d46936942cbc71dd4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use Cviebrock\EloquentSluggable\Sluggable; | |
use Illuminate\Database\Eloquent\Model; | |
class Project extends Model | |
{ | |
use Sluggable; | |
/** | |
* @return array | |
*/ | |
public function sluggable(): array { | |
return [ | |
'slug' => [ | |
'source' => 'name' | |
] | |
]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment