27 lines
		
	
	
		
			472 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			472 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Models\Purchase;
 | |
| 
 | |
| use App\Abstracts\Model;
 | |
| use App\Traits\Currencies;
 | |
| 
 | |
| class BillHistory extends Model
 | |
| {
 | |
| 
 | |
|     use Currencies;
 | |
| 
 | |
|     protected $table = 'bill_histories';
 | |
| 
 | |
|     /**
 | |
|      * Attributes that should be mass-assignable.
 | |
|      *
 | |
|      * @var array
 | |
|      */
 | |
|     protected $fillable = ['company_id', 'bill_id', 'status', 'notify', 'description'];
 | |
| 
 | |
|     public function bill()
 | |
|     {
 | |
|         return $this->belongsTo('App\Models\Purchase\Bill');
 | |
|     }
 | |
| }
 |