Add paypal payments

This commit is contained in:
Deon George
2020-07-27 14:49:59 +10:00
parent 9887996da8
commit 1242dffa20
18 changed files with 1483 additions and 433 deletions

View File

@@ -4,11 +4,12 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Traits\PushNew;
use App\Traits\NextKey;
class Payment extends Model
{
use NextKey;
use NextKey,PushNew;
const RECORD_ID = 'payment';
public $incrementing = FALSE;
@@ -20,6 +21,9 @@ class Payment extends Model
protected $dateFormat = 'U';
protected $with = ['account.country.currency','items'];
// Array of items that can be updated with PushNew
protected $pushable = ['items'];
public function account()
{
return $this->belongsTo(Account::class);