mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-08-05 03:16:14 -04:00
19 lines
530 B
PHP
19 lines
530 B
PHP
<?php
|
|
|
|
namespace Modules\PaymentGateway\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PaymentMethod extends Model
|
|
{
|
|
protected $guarded = ['id'];
|
|
|
|
public function sellerPaymentMethod(){
|
|
return $this->hasOne(SellerWisePaymentGateway::class, 'payment_method_id', 'id')->where('user_id', session()->get('seller_for_checkout'));
|
|
}
|
|
|
|
public function ActivePaymentWithoutCheckout(){
|
|
return $this->hasOne(SellerWisePaymentGateway::class, 'payment_method_id', 'id')->where('user_id', 1);
|
|
}
|
|
}
|