fix some error in notification frontend

This commit is contained in:
Jack Goh
2018-08-30 16:48:29 +08:00
parent bd1e38273e
commit 5cecb731f6
3 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -25,6 +25,6 @@ class UserController extends Controller
public function notifications()
{
$notifications = auth()->user()->unreadNotifications()->limit(5)->get();
return response()->json(['notifications'=>$notifications], 200);
return response()->json(['notifications'=> $notifications], 200);
}
}