rinvex/laravel-subscriptions

column user in subscriptions.models.plan_subscription is changed !

abdullahessam opened this issue · 1 comments

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');
}

Sorry about that breaking change. Details about the change, and a proposed solution could be found here c47c856