我有 CartController 路由过滤器似乎只能在控制器上绑定或获取,我可以在“动作”上进行身份验证过滤吗?
例如:
<?php
CartController extends BaseController {
public function getIndex() {
// not need filter
}
public function getList()
{
// not need filter
}
public function getCheck()
{
// need to filter
}
}