specify middleware directly

This commit is contained in:
Taylor Otwell
2016-07-10 08:48:46 -05:00
parent d72e3f3af5
commit 9ecfa9cf8e

View File

@@ -28,7 +28,7 @@ class AuthController extends Controller
* *
* @var string * @var string
*/ */
protected $redirectTo = '/'; protected $redirectTo = '/home';
/** /**
* Create a new authentication controller instance. * Create a new authentication controller instance.
@@ -37,7 +37,7 @@ class AuthController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->middleware($this->guestMiddleware(), ['except' => 'logout']); $this->middleware('guest', ['except' => 'logout']);
} }
/** /**