column user in subscriptions.models.plan_subscription is changed !
abdullahessam opened this issue · 1 comments
abdullahessam commented
i got an error after i make composer update about column subscriber not found after debuging i found that
rinvex.subscriptions.models.plan_subscription table
$table->morphs('subscriber');
changed from user to subscriber
and the subscription function in the HasSubscriptions trait
the solution for me i just override the subscriptions relation function in my model morph column name to user
public function subscriptions(): MorphMany
{
return $this->morphMany(config('rinvex.subscriptions.models.plan_subscription'), 'user', 'user_type', 'user_id');
}