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
commit b699ffabce
1 changed files with 1 additions and 1 deletions

View File

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