【发布时间】:2013-10-13 03:05:47
【问题描述】:
我有以下过滤器:
Route::filter('security', function()
{
//do security checks
//send to my gateway controller and test() method
});
Route::when('/gateway', 'security');
上面的好像不行,我哪里错了?
我应该在过滤器中放入什么来在我的网关控制器中加载我的测试方法?
-
如何测试调用是否为 ajax 调用:
请求::ajax()
【问题讨论】: