在Laravel 3中,可以使用Controller::Call方法调用控制器,如下所示:
Controller::call('api.items@index', $params);
I looked through the Controller class in L4 and found this method which seems to replace the older method: callAction(). Though it isn't a static method and I couldn't get it to work. Probably not the right way to do it?
我怎样才能在拉威尔4中做到这一点?