1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00
invoiceninja/app/Models/LookupCompany.php

31 lines
424 B
PHP
Raw Normal View History

2017-04-30 19:08:49 +02:00
<?php
namespace App\Models;
use Eloquent;
/**
* Class ExpenseCategory.
*/
2017-04-30 21:18:17 +02:00
class LookupCompany extends LookupModel
2017-04-30 19:08:49 +02:00
{
/**
* @var array
*/
protected $fillable = [
'db_server_id',
2017-04-30 20:44:52 +02:00
'company_id',
2017-04-30 19:08:49 +02:00
];
2017-04-30 21:52:05 +02:00
public function dbServer()
{
return $this->belongsTo('App\Models\DbServer');
}
2017-05-11 09:52:13 +02:00
public function getDbServer()
{
return $this->dbServer->name;
}
2017-04-30 19:08:49 +02:00
}