*/ use HasFactory; /** * Get the service entries for the catalog item. * * @return HasMany */ public function serviceEntries(): HasMany { return $this->hasMany(ServiceEntry::class); } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'default_price' => 'decimal:2', 'sort_order' => 'integer', 'is_active' => 'boolean', ]; } }