'integer', ]; /** * Get the subscription that the item belongs to. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function subscription() { $model = Cashier::$subscriptionModel; return $this->belongsTo($model, (new $model)->getForeignKey()); } }