@@ -25,13 +25,13 @@ discard block |
||
25 | 25 | // Log::debug('Route "' . Route::currentRouteName() . '" visited by ' . Auth::user()->full_name); |
26 | 26 | |
27 | 27 | // Get Dashboard data |
28 | - $custFavs = CustomerFavs::where('user_id', Auth::user()->user_id) |
|
29 | - ->with(array('Customers' => function($query){ |
|
28 | + $custFavs = CustomerFavs::where('user_id', Auth::user()->user_id) |
|
29 | + ->with(array('Customers' => function($query) { |
|
30 | 30 | $query->select('cust_id', 'name'); |
31 | 31 | })) |
32 | 32 | ->get(); |
33 | - $tipFavs = TechTipFavs::where('user_id', Auth::user()->user_id) |
|
34 | - ->with(array('TechTips' => function($query){ |
|
33 | + $tipFavs = TechTipFavs::where('user_id', Auth::user()->user_id) |
|
34 | + ->with(array('TechTips' => function($query) { |
|
35 | 35 | $query->select('tip_id', 'subject'); |
36 | 36 | })) |
37 | 37 | ->get(); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $notification = Auth::user()->notifications()->where('id', $id)->where('notifiable_id', Auth::user()->user_id)->first(); |
91 | 91 | if(!$notification) |
92 | 92 | { |
93 | - Log::error('User ' . Auth::user()->full_name . ' tried to delete an invalid notification. Notification ID: ' . $id); |
|
93 | + Log::error('User '.Auth::user()->full_name.' tried to delete an invalid notification. Notification ID: '.$id); |
|
94 | 94 | return abort(404); |
95 | 95 | } |
96 | 96 |