0
我在定義Laravel4和Authority的能力方面存在問題(https://github.com/machuga/authority-l4)。 在權力配置這條規則應該工作:Laravel4權限定義能力
$authority->allow('manage', 'Post', function($self, $post){
// return ($post->sth ...)
});
但問題是$後,這始終是零。
那麼, 「未定義變量」 錯誤。這也不是通過引用而傳遞的。 – user3299269