mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	* extract PortRelatedModel and DeviceRelatedModel * add scope for inDeviceGroup * handle null device group
		
			
				
	
	
		
			17 lines
		
	
	
		
			288 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			288 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', 'device_id');
 | 
						|
    }
 | 
						|
}
 |