mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* API: System endpoint, more health graphs * Add new line api_functions * Get count of relationships Using eloquent * Add new lines in Models
19 lines
310 B
PHP
19 lines
310 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class Mempool extends BaseModel
|
|
{
|
|
|
|
protected $table = 'mempools';
|
|
|
|
protected $primaryKey = 'mempool_id';
|
|
|
|
// ---- Define Relationships ----
|
|
|
|
public function device()
|
|
{
|
|
return $this->belongsTo('App\Models\Device', 'device_id', 'device_id');
|
|
}
|
|
}
|