Add paypal payments
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user