mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 07:17:30 -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
		
			
				
	
	
		
			30 lines
		
	
	
		
			431 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			431 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Models;
 | |
| 
 | |
| use App\Utils\Traits\MakesHash;
 | |
| use Illuminate\Database\Eloquent\Model;
 | |
| 
 | |
| class Proposal extends BaseModel
 | |
| {
 | |
|     use MakesHash;
 | |
| 
 | |
| 	protected $guarded = [
 | |
| 		'id',
 | |
| 	];
 | |
| 
 | |
|     protected $appends = ['proposal_id'];
 | |
| 
 | |
|     public function getRouteKeyName()
 | |
|     {
 | |
|         return 'proposal_id';
 | |
|     }
 | |
| 
 | |
|     public function getProposalIdAttribute()
 | |
|     {
 | |
|         return $this->encodePrimaryKey($this->id);
 | |
|     }
 | |
| 
 | |
| 
 | |
| }
 |