mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 05:17:31 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			51 lines
		
	
	
		
			757 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			757 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Models;
 | |
| 
 | |
| use Eloquent;
 | |
| use Illuminate\Database\Eloquent\SoftDeletes;
 | |
| 
 | |
| /**
 | |
|  * Class Subscription.
 | |
|  */
 | |
| class Subscription extends EntityModel
 | |
| {
 | |
|     /**
 | |
|      * @var bool
 | |
|      */
 | |
|     public $timestamps = true;
 | |
| 
 | |
|     use SoftDeletes;
 | |
| 
 | |
|     /**
 | |
|      * @var array
 | |
|      */
 | |
|     protected $dates = ['deleted_at'];
 | |
| 
 | |
|     /**
 | |
|      * @var array
 | |
|      */
 | |
|     protected $fillable = [
 | |
|         'event_id',
 | |
|         'target_url',
 | |
|         'format',
 | |
|     ];
 | |
| 
 | |
|     /**
 | |
|      * @return mixed
 | |
|      */
 | |
|     public function getEntityType()
 | |
|     {
 | |
|         return ENTITY_SUBSCRIPTION;
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
 | |
|      */
 | |
|     public function account()
 | |
|     {
 | |
|         return $this->belongsTo('App\Models\Account');
 | |
|     }
 | |
| 
 | |
| }
 |