Merge pull request #4229 from ebuster/patch-1

More clear way to assign middleware in controller
This commit is contained in:
Taylor Otwell
2017-04-18 07:41:14 -05:00
committed by GitHub

View File

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