mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 21:37:34 -05: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;
 | 
						|
    }
 | 
						|
 | 
						|
}
 |