1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00
invoiceninja/app/Models/LookupCompany.php
2019-01-30 22:25:37 +11: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;
}
}