Display what subscriptions (if any) a subscriber has

This commit is contained in:
James Brooks
2016-02-09 19:09:30 +00:00
committed by Graham Campbell
parent c9f08a3e6e
commit 0b78332a20
4 changed files with 53 additions and 27 deletions

View File

@@ -48,6 +48,13 @@ class Subscriber extends Model implements HasPresenter
'email' => 'required|email',
];
/**
* The relations to eager load on every query.
*
* @var string[]
*/
protected $with = ['subscriptions'];
/**
* Overrides the models boot method.
*/