From d09b00a70f70ae3f9028d61e96862f71357455ad Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 26 May 2019 23:05:29 -0600 Subject: [PATCH] Update NotificationService --- app/Services/NotificationService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/NotificationService.php b/app/Services/NotificationService.php index 4827a6c6f..15adf6c7c 100644 --- a/app/Services/NotificationService.php +++ b/app/Services/NotificationService.php @@ -73,7 +73,7 @@ class NotificationService { public static function getNotification($id) { return Cache::remember('service:notification:'.$id, now()->addDays(7), function() use($id) { - $n = Notification::findOrFail($id); + $n = Notification::with('item')->findOrFail($id); $fractal = new Fractal\Manager(); $fractal->setSerializer(new ArraySerializer()); $resource = new Fractal\Resource\Item($n, new NotificationTransformer());