0
我有以下过滤器:Laravel 4 - 基于模式的过滤器?
Route::filter('security', function()
{
//do security checks
//send to my gateway controller and test() method
});
Route::when('/gateway', 'security');
上面似乎没有工作,我要去哪里错了?
我应该在过滤器中放入什么,以在我的网关控制器中加载我的测试方法?
如何测试呼叫是使用Ajax调用:
支持::阿贾克斯()