]> _ Git - psq.git/commitdiff
add prod login wall
authorLouis Jeckel <louis.jeckel@outlook.cm>
Sun, 16 Aug 2020 15:38:04 +0000 (17:38 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Sun, 16 Aug 2020 15:38:04 +0000 (17:38 +0200)
app/Http/Controllers/Controller.php

index a0a2a8a34a6221e4dceb24a759ed14e911f74c57..854e0c7e9600b17de1b9f54f517aefab52066699 100644 (file)
@@ -10,4 +10,13 @@ use Illuminate\Routing\Controller as BaseController;
 class Controller extends BaseController
 {
     use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
+
+    public function __construct()
+    {
+        if(config('app.env') === 'prod') {
+            $this->middleware('auth');
+        }
+    }
+
+
 }