mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
31 lines
424 B
PHP
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;
|
|
}
|
|
|
|
}
|