mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-30 22:27:32 -04:00 
			
		
		
		
	* Client Address * Vue components for address * Fix for null objects being passed to Vue * Copy Billing Address * route key * Social auth * Pad out route bindings * Deploy hashes across models * social auth buttons
		
			
				
	
	
		
			31 lines
		
	
	
		
			538 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			538 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Models;
 | |
| 
 | |
| use App\Utils\Traits\MakesHash;
 | |
| use Illuminate\Database\Eloquent\Model;
 | |
| 
 | |
| class ClientLocation extends BaseModel
 | |
| {
 | |
|     use MakesHash;
 | |
| 
 | |
|     public $timestamps = false;
 | |
| 
 | |
|     protected $appends = ['client_location_id'];
 | |
| 
 | |
|     public function getRouteKeyName()
 | |
|     {
 | |
|         return 'client_location_id';
 | |
|     }
 | |
| 
 | |
|     public function getClientLocationIdAttribute()
 | |
|     {
 | |
|         return $this->encodePrimaryKey($this->id);
 | |
|     }
 | |
| 
 | |
|     public function client()
 | |
|     {
 | |
|     	return $this->belongsTo(Client::class);
 | |
|     }
 | |
| }
 |