*/ protected $fillable = [ 'name', 'slug', 'bio', ]; /** * Boot the model. */ protected static function boot() { parent::boot(); static::creating(function ($designer) { if (empty($designer->slug)) { $designer->slug = Str::slug($designer->name); } }); } /** * Get the rides designed by this designer. */ public function rides(): HasMany { return $this->hasMany(Ride::class); } }