2021-06-25 11:31:57 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2022-10-23 02:46:46 +00:00
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
2021-06-25 11:31:57 +00:00
|
|
|
|
|
|
|
class Nodelist extends Model
|
|
|
|
{
|
2022-10-23 02:46:46 +00:00
|
|
|
use SoftDeletes;
|
|
|
|
|
2023-06-26 00:32:38 +00:00
|
|
|
protected $casts = [
|
|
|
|
'date' => 'datetime:Y-m-d H:i:s'
|
|
|
|
];
|
|
|
|
|
2021-06-25 11:31:57 +00:00
|
|
|
protected $fillable = ['date','domain_id'];
|
|
|
|
|
2021-06-26 00:34:49 +00:00
|
|
|
public const definitions = ['Zone','Region','Host','Hub','Pvt','Hold','Down'];
|
2021-06-25 11:31:57 +00:00
|
|
|
|
|
|
|
/* RELATIONS */
|
|
|
|
|
|
|
|
public function addresses()
|
|
|
|
{
|
|
|
|
return $this->belongsToMany(Address::class);
|
|
|
|
}
|
|
|
|
}
|