First commit
This commit is contained in:
30
app/NoHome.php
Normal file
30
app/NoHome.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user