<?php

namespace App\Models;

use App\Models\FinishedContracts;

use Illuminate\Database\Eloquent\Model;
use TarfinLabs\LaravelSpatial\Casts\LocationCast;
use TarfinLabs\LaravelSpatial\Traits\HasSpatial;

class NoHome extends Model
{
    use HasSpatial;
    //

    protected $fillable = [
        'contract_id',
        'house_photo',
    ];

    protected $casts = [
        'location' => LocationCast::class
    ];

  public function finishedcontracts()
  {
      return $this->belongsTo(FinishedContracts::class);
  }

}
