2019-01-20 08:43:36 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
2021-03-31 17:28:47 +02:00
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
|
2019-01-22 17:04:28 -06:00
|
|
|
class Ipv4Mac extends PortRelatedModel
|
2019-01-20 08:43:36 -06:00
|
|
|
{
|
|
|
|
protected $table = 'ipv4_mac';
|
|
|
|
public $timestamps = false;
|
2019-01-22 17:04:28 -06:00
|
|
|
|
|
|
|
// ---- Define Relationships ----
|
|
|
|
|
2021-03-31 17:28:47 +02:00
|
|
|
public function device(): BelongsTo
|
2019-01-22 17:04:28 -06:00
|
|
|
{
|
2020-04-21 14:28:48 +02:00
|
|
|
return $this->belongsTo(\App\Models\Device::class, 'device_id');
|
2019-01-22 17:04:28 -06:00
|
|
|
}
|
2019-01-20 08:43:36 -06:00
|
|
|
}
|