我正在try 使用cartalyst sentry 2在我的网站正在与Laravel 4.基本上我不知道如何实现权限.
我看到的关于组权限的示例指定以下内容作为示例:
{
"name" : "Administrator",
"permissions" :
{
"user.create" : 1,
"user.delete" : 1,
"user.view" : 1,
"user.update" : 1
}
}
这是为管理员组设置权限.但这些权限设置在哪里?
在"组"表中有一个名为"权限"的字段,它是一个文本字段——它们是否设置在那里——如果设置了,如何设置?或者这些设置在模型或控制器中?
Can anyone point me to s step by step on how to use in a laravel 4 app? I've read the supporting docs which foes through the functions but I'm just not sure how to set the data to get the functions to work.