Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2020-03-17 05:14:38 +00:00
committed by StyleCI Bot
parent 9fe479b141
commit ed3bbd76d7
75 changed files with 1285 additions and 1030 deletions

View File

@@ -13,7 +13,7 @@ class NotificationController extends Controller
{
/**
* ********************************************
* Class Notification Controller
* Class Notification Controller.
* ********************************************
* This controller is used to generate in app notification
* under the folling occurrence
@@ -157,13 +157,13 @@ class NotificationController extends Controller
public static function getNotifications()
{
$notifications = UserNotification::with([
'notification.type' => function ($query) {
$query->select('id', 'message', 'type');
}, 'users' => function ($query) {
$query->select('id', 'email', 'profile_pic');
}, 'notification.model' => function ($query) {
$query->select('id', 'ticket_number');
},
'notification.type' => function ($query) {
$query->select('id', 'message', 'type');
}, 'users' => function ($query) {
$query->select('id', 'email', 'profile_pic');
}, 'notification.model' => function ($query) {
$query->select('id', 'ticket_number');
},
])->where('user_id', '=', \Auth::user()->id);
return $notifications;