*/ public function city(): BelongsTo { return $this->belongsTo(City::class); } /** * Store providing the position, when commercial. * * @return BelongsTo */ public function store(): BelongsTo { return $this->belongsTo(Store::class); } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'salary' => 'float', 'requires_education' => 'integer', ]; } }