Commit b699ffab authored by Taylor Otwell's avatar Taylor Otwell Committed by GitHub

Merge pull request #4229 from ebuster/patch-1

More clear way to assign middleware in controller
parents d905b2e7 9aeef981
...@@ -34,6 +34,6 @@ class LoginController extends Controller ...@@ -34,6 +34,6 @@ class LoginController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware('guest', ['except' => 'logout']); $this->middleware('guest')->except('logout');
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment