|
@@ -38,9 +38,9 @@ class AccountController extends Controller
|
|
public function hydrateNotifications($keys)
|
|
public function hydrateNotifications($keys)
|
|
{
|
|
{
|
|
$prefix = 'notification.';
|
|
$prefix = 'notification.';
|
|
- $notifications = [];
|
|
|
|
|
|
+ $notifications = collect([]);
|
|
foreach($keys as $key) {
|
|
foreach($keys as $key) {
|
|
- $notifications[] = Cache::get($prefix . $key);
|
|
|
|
|
|
+ $notifications->push(Cache::get("{$prefix}{$key}"));
|
|
}
|
|
}
|
|
return $notifications;
|
|
return $notifications;
|
|
}
|
|
}
|