Completed
Push — develop ( bde4a3...f2b12e )
by Neil
11:48
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/Http/Middleware/SetViewVariable.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 namespace App\Http\Middleware;
3 3
 
4 4
 use Closure;
5
-use Illuminate\Contracts\Auth\Guard;
6 5
 use Dingo\Api\Http;
7 6
 use Dingo\Api\Routing\Helpers;
7
+use Illuminate\Contracts\Auth\Guard;
8 8
 use Illuminate\Http\Request;
9 9
 
10 10
 class SetViewVariable
Please login to merge, or discard this patch.