diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 79f2d1c80..f2d1f4092 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -38,9 +38,9 @@ class AccountController extends Controller public function hydrateNotifications($keys) { $prefix = 'notification.'; - $notifications = []; + $notifications = collect([]); foreach($keys as $key) { - $notifications[] = Cache::get($prefix . $key); + $notifications->push(Cache::get("{$prefix}{$key}")); } return $notifications; } diff --git a/app/WebSub.php b/app/WebSub.php new file mode 100644 index 000000000..5be3ad93f --- /dev/null +++ b/app/WebSub.php @@ -0,0 +1,10 @@ +