Display what subscriptions (if any) a subscriber has
This commit is contained in:
committed by
Graham Campbell
parent
c9f08a3e6e
commit
0b78332a20
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user