|City newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|City newQuery() * @method static \Illuminate\Database\Eloquent\Builder|City onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|City query() * @method static \Illuminate\Database\Eloquent\Builder|City whereCountryId($value) * @method static \Illuminate\Database\Eloquent\Builder|City whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|City whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|City whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|City whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|City whereStateId($value) * @method static \Illuminate\Database\Eloquent\Builder|City whereStatus($value) * @method static \Illuminate\Database\Eloquent\Builder|City whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|City withTrashed(bool $withTrashed = true) * @method static \Illuminate\Database\Eloquent\Builder|City withoutTrashed() * @mixin \Eloquent */ class City extends Model { use HasFactory, SoftDeletes; protected $table = "cities"; protected $guarded = ["id"]; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ "status" => DefaultStatusEnum::class, ]; } /** * @return BelongsTo */ public function country(): BelongsTo { return $this->belongsTo(Country::class, "country_id"); } /** * @return BelongsTo */ public function state(): BelongsTo { return $this->belongsTo(State::class, "state_id"); } }