mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-30 20:16:46 -04:00
26 lines
619 B
PHP
26 lines
619 B
PHP
<?php
|
|
|
|
namespace Modules\Subscription\Entities;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Modules\Seller\Entities\SellerProduct;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class SubscriptionPlanPricePaypal extends Model
|
|
{
|
|
|
|
use SoftDeletes;
|
|
|
|
protected $table = "subscription_plan_prices_paypal";
|
|
protected $guarded = ['id'];
|
|
|
|
public function user() {
|
|
return $this->belongsTo(User::class, 'user_id', 'id');
|
|
}
|
|
|
|
public function planPrice() {
|
|
return $this->hasOne(SubscriptionPlanPrice::class, 'id', 'subscription_plan_price_id')->withTrashed();
|
|
}
|
|
}
|