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
305 B
PHP

<?php
namespace App\Models;
class Storage extends BaseModel
{
protected $table = 'storage';
protected $primaryKey = 'storage_id';
// ---- Define Relationships ----
public function device()
{
return $this->belongsTo('App\Models\Device', 'device_id', 'device_id');
}
}