Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

權限管理機制 #38

Open
jyhsu2000 opened this issue Apr 9, 2015 · 4 comments
Open

權限管理機制 #38

jyhsu2000 opened this issue Apr 9, 2015 · 4 comments
Assignees

Comments

@jyhsu2000
Copy link
Member

Based on group or user

可參考:
Role based permissions for Laravel 5.
以Role、User、Permission為基礎架構,較簡單
Vault (Laravel 5 Package)
較強大,但相對困難

@jyhsu2000 jyhsu2000 self-assigned this Apr 9, 2015
@jyhsu2000
Copy link
Member Author

或許也可能自己實作
感覺也不難

  • Permission(權限本身)
    • id
    • name
    • description
  • GroupPermission(群組擁有的權限)
    • group_id
    • permission_id
    • start_at
    • end_at

至於繼承關係...
不知有無必要

@jyhsu2000
Copy link
Member Author

Zizaco/entrust
Role-based Permissions for Laravel 5

@danny50610
Copy link
Member

這個有辦法根據幹部清單直接給予角色嗎?

@jyhsu2000
Copy link
Member Author

可以
只要你的幹部清單有辦法過濾出一群使用者就可以
應該說...關鍵在於有沒有辦法過濾出使用者的集合
只要過濾出來,同時賦予什麼角色都是沒問題的
不過也要等到之後我把整個架構轉成Entrust才行...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants