2013-06-30 24 views
0

使用Laravel 4Laravel 4未定義的方法支持::僞造()

我有一個過濾器:

Route::filter('csrf', function() 
{ 
    if (Request::forged()) return Response::error('500'); 
}); 

,並在控制器我打電話POST請求過濾器:

public function __construct() 
{ 
    $this->beforeFilter('csrf', array('on' => 'post')); 
} 

,但我得到這個錯誤,當我張貼:

Call to undefined method Illuminate\Http\Request::forged() 

任何人都可以給我一些洞察什麼是錯的請嗎?

回答