Merge pull request #4229 from ebuster/patch-1
More clear way to assign middleware in controller
This commit is contained in:
commit
b699ffabce
|
@ -34,6 +34,6 @@ class LoginController extends Controller
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->middleware('guest', ['except' => 'logout']);
|
$this->middleware('guest')->except('logout');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue