From: Louis Jeckel Date: Fri, 30 Oct 2020 12:15:59 +0000 (+0100) Subject: SentEmail.php only existing users X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e4122080e3ca91e5de1a8544456d96c76a189d5f;p=psq.git SentEmail.php only existing users --- diff --git a/app/Nova/SentEmail.php b/app/Nova/SentEmail.php index 2cbd226..a54dde1 100644 --- a/app/Nova/SentEmail.php +++ b/app/Nova/SentEmail.php @@ -93,6 +93,16 @@ class SentEmail extends Resource ]; } + /** + * @param NovaRequest $request + * @param \Illuminate\Database\Eloquent\Builder $query + * @return \Illuminate\Database\Eloquent\Builder + */ + public static function indexQuery(NovaRequest $request, $query) + { + return $query->whereHas('user'); + } + /** * Get the cards available for the request. *