Bug-fix-patch-12
# fixed notifications
This commit is contained in:
@@ -151,11 +151,9 @@ class NotificationController extends Controller
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* get the page to list the notifications.
|
* get the page to list the notifications.
|
||||||
*
|
|
||||||
* @return response
|
* @return response
|
||||||
*/
|
*/
|
||||||
public static function getNotifications()
|
public static function getNotifications() {
|
||||||
{
|
|
||||||
$notifications = UserNotification::with([
|
$notifications = UserNotification::with([
|
||||||
'notification.type' => function($query) {
|
'notification.type' => function($query) {
|
||||||
$query->select('id', 'message', 'type');
|
$query->select('id', 'message', 'type');
|
||||||
@@ -164,8 +162,7 @@ class NotificationController extends Controller
|
|||||||
}, 'notification.model' => function($query) {
|
}, 'notification.model' => function($query) {
|
||||||
$query->select('id', 'ticket_number');
|
$query->select('id', 'ticket_number');
|
||||||
},
|
},
|
||||||
])->where('id', '=', \Auth::user()->id);
|
])->where('user_id', '=', \Auth::user()->id);
|
||||||
|
|
||||||
return $notifications;
|
return $notifications;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user