Completed
Pull Request — develop (#87)
by Tony
26:33 queued 12:17
created
app/Http/Middleware/Authenticate.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@
 block discarded – undo
20 20
         if (Auth::guard($guard)->guest()) {
21 21
             if ($request->ajax() || $request->wantsJson()) {
22 22
                 return response('Unauthorized.', 401);
23
-            } else {
23
+            }
24
+            else {
24 25
                 return redirect()->guest('login');
25 26
             }
26 27
         }
Please login to merge, or discard this patch.
app/Api/Controllers/WidgetController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * Display a listing of all widgets
17 17
      *
18
-     * @return \Illuminate\Http\Response
18
+     * @return \Illuminate\Database\Eloquent\Collection
19 19
      */
20 20
     public function index(Request $request)
21 21
     {
Please login to merge, or discard this patch.
app/Models/UsersWidgets.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     // ---- Define Relationships ----
65 65
 
66 66
     /**
67
-     * @return \Illuminate\Database\Eloquent\Relations\HasOne
67
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
68 68
      */
69 69
     public function user()
70 70
     {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-     * @return \Illuminate\Database\Eloquent\Relations\HasOne
83
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
84 84
      */
85 85
     public function dashboard()
86 86
     {
Please login to merge, or discard this patch.