Completed
Push — settings ( f1d4fe...bea8d4 )
by Tony
02:46
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
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Api\Controllers;
4 4
 
5
-use App\Models\User;
6 5
 use App\Models\Widgets;
7 6
 use Illuminate\Http\Request;
8 7
 
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Illuminate\Http\Request;
8 8
 use App\Models\Dashboard;
9 9
 use JWTAuth;
10
-use Tymon\JWTAuth\Exceptions\JWTException;
11 10
 
12 11
 class HomeController extends Controller
13 12
 {
Please login to merge, or discard this patch.
app/Api/Controllers/DashboardController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Api\Controllers;
4 4
 
5
-use App\Models\User;
6 5
 use App\Models\Widgets;
7 6
 use Illuminate\Http\Request;
8 7
 
Please login to merge, or discard this patch.
app/Api/Controllers/UsersWidgetController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Api\Controllers;
4 4
 
5
-use App\Models\User;
6 5
 use App\Models\Widgets;
7 6
 use Illuminate\Http\Request;
8 7
 
Please login to merge, or discard this patch.