Paul Heinrichs 2d7423cdaa API: System endpoint, more health graphs (#8730)
* API: System endpoint, more health graphs

* Add new line api_functions

* Get count of relationships

Using eloquent

* Add new lines in Models
2018-05-18 23:36:06 -05:00

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');
}
}