*/ public function seller(): BelongsTo { return $this->belongsTo(Character::class, 'seller_character_id'); } /** * City where the listing is visible. * * @return BelongsTo */ public function city(): BelongsTo { return $this->belongsTo(City::class); } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'unit_price' => 'float', 'qty' => 'integer', 'is_active' => 'boolean', ]; } }