2019-04-26 04:30:00 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
2021-05-03 12:12:26 +00:00
|
|
|
use App\Traits\ScopeActive;
|
|
|
|
|
2019-04-26 04:30:00 +00:00
|
|
|
class Zone extends Model
|
|
|
|
{
|
2021-05-03 12:12:26 +00:00
|
|
|
use ScopeActive;
|
|
|
|
|
2021-05-13 12:40:21 +00:00
|
|
|
/* RELATIONS */
|
|
|
|
|
2021-06-20 13:03:20 +00:00
|
|
|
public function addresses()
|
|
|
|
{
|
|
|
|
return $this->hasMany(Address::class);
|
|
|
|
}
|
|
|
|
|
2021-05-13 12:40:21 +00:00
|
|
|
public function domain()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Domain::class);
|
|
|
|
}
|
|
|
|
|
2021-06-19 01:59:01 +00:00
|
|
|
public function system()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(System::class);
|
|
|
|
}
|
2019-04-26 04:30:00 +00:00
|
|
|
}
|