Added per-component subscriptions. Closes #734

This commit is contained in:
James Brooks
2016-01-10 15:54:54 +00:00
committed by James Brooks
parent e5c137f82b
commit ac3888f7c8
29 changed files with 620 additions and 17 deletions
+10
View File
@@ -62,6 +62,16 @@ class Subscriber extends Model implements HasPresenter
});
}
/**
* A subscriber has many subscriptions.
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function subcriptions()
{
return $this->hasMany(Subscription::class);
}
/**
* Scope verified subscribers.
*