BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
app.imagivibe.com
/
app
/
Models
📤 Upload
📝 New File
📁 New Folder
Close
Editing: RevenueCatProducts.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class RevenueCatProducts extends Model { use HasFactory; protected $table = 'revenuecat_products'; // / Return the gateway product of this revenuecat product defined as foreign key public function gateway_product() { return $this->belongsTo(GatewayProducts::class, 'gatewayproduct_id', 'id'); } // / Return the plan of this revenuecat product defined as foreign key public function plan() { return $this->belongsTo(Plan::class, 'plan_id', 'id'); } }
Save
Cancel