Browse Source

Merge pull request #4229 from ebuster/patch-1

More clear way to assign middleware in controller
Taylor Otwell 7 years ago
parent
commit
b699ffabce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Auth/LoginController.php

+ 1 - 1
app/Http/Controllers/Auth/LoginController.php

@@ -34,6 +34,6 @@ class LoginController extends Controller
      */
     public function __construct()
     {
-        $this->middleware('guest', ['except' => 'logout']);
+        $this->middleware('guest')->except('logout');
     }
 }