1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/Models/LookupCompany.php
2017-05-11 10:52:13 +03:00

31 lines
424 B
PHP

<?php
namespace App\Models;
use Eloquent;
/**
* Class ExpenseCategory.
*/
class LookupCompany extends LookupModel
{
/**
* @var array
*/
protected $fillable = [
'db_server_id',
'company_id',
];
public function dbServer()
{
return $this->belongsTo('App\Models\DbServer');
}
public function getDbServer()
{
return $this->dbServer->name;
}
}