mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 21:37:34 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			572 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			572 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php namespace App\Models;
 | 
						|
 | 
						|
use Eloquent;
 | 
						|
use Illuminate\Database\Eloquent\SoftDeletes;
 | 
						|
 | 
						|
class AccountGatewayToken extends Eloquent
 | 
						|
{
 | 
						|
    use SoftDeletes;
 | 
						|
    protected $dates = ['deleted_at'];
 | 
						|
    public $timestamps = true;
 | 
						|
 | 
						|
    protected $casts = [
 | 
						|
        'uses_local_payment_methods' => 'boolean',
 | 
						|
    ];
 | 
						|
 | 
						|
    public function payment_methods()
 | 
						|
    {
 | 
						|
        return $this->hasMany('App\Models\PaymentMethod');
 | 
						|
    }
 | 
						|
 | 
						|
    public function default_payment_method()
 | 
						|
    {
 | 
						|
        return $this->hasOne('App\Models\PaymentMethod', 'id', 'default_payment_method_id');
 | 
						|
    }
 | 
						|
} |