first commit
This commit is contained in:
29
app/NoHome.php
Normal file
29
app/NoHome.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use App\Models\FinishedContracts;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Grimzy\LaravelMysqlSpatial\Eloquent\SpatialTrait;
|
||||
|
||||
class NoHome extends Model
|
||||
{
|
||||
use SpatialTrait;
|
||||
//
|
||||
|
||||
protected $fillable = [
|
||||
'contract_id',
|
||||
'house_photo',
|
||||
];
|
||||
|
||||
protected $spatialFields = [
|
||||
'location',
|
||||
];
|
||||
|
||||
public function finishedcontracts()
|
||||
{
|
||||
return $this->belongsTo(FinishedContracts::class);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user