8ea540a88c
- use PHP7 null coalesce operator instead of laravel optional method - change Breadcrumbs::register method to Bredcrumbs::for method - composer updates
28 lines
596 B
PHP
28 lines
596 B
PHP
<?php
|
|
namespace App\Models;
|
|
|
|
use App\Models\Dataset;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class GeolocationBox extends Model
|
|
{
|
|
use HasFactory;
|
|
protected $table = 'geolocation_box';
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = ['xmin', 'xmax', 'ymin', 'ymax'];
|
|
|
|
protected $casts = [
|
|
'xmin' => 'float',
|
|
'xmax' => 'float',
|
|
'ymin' => 'float',
|
|
'ymax' => 'float',
|
|
];
|
|
|
|
public function dataset()
|
|
{
|
|
return $this->belongsTo(Dataset::class, 'dataset_id', 'id');
|
|
}
|
|
}
|