Files
librenms-librenms/app/Models/Ipv4Mac.php
Jellyfrog 36e54ab9f1 Use model::class instead of string for binding (#11450)
* Use model::class instead of string for binding

Originally from laravel shift

Shift bindings

PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.

* Shift cleanup
2020-04-21 07:28:48 -05:00

17 lines
294 B
PHP

<?php
namespace App\Models;
class Ipv4Mac extends PortRelatedModel
{
protected $table = 'ipv4_mac';
public $timestamps = false;
// ---- Define Relationships ----
public function device()
{
return $this->belongsTo(\App\Models\Device::class, 'device_id');
}
}