mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
45cc67075d
* add types to transformers * minor fixes for test data creator * Working on refunds * Update migration files to include client contacts * Working on refunds * Working on refunds * Working on refunds * Refund Tests * Working on refund tests
39 lines
820 B
PHP
39 lines
820 B
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://opensource.org/licenses/AAL
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\Pivot;
|
|
|
|
class Paymentable extends Pivot
|
|
{
|
|
protected $table = 'paymentables';
|
|
|
|
//protected $dateFormat = 'Y-m-d H:i:s.u';
|
|
|
|
/**
|
|
* The attributes that should be cast to native types.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [
|
|
'updated_at' => 'timestamp',
|
|
'created_at' => 'timestamp',
|
|
'deleted_at' => 'timestamp',
|
|
'settings' => 'object',
|
|
];
|
|
|
|
public function paymentable()
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
}
|