AAuth

Hierarchical Rol-Permission Based Laravel Auth Package with Limitless Hierarchical Level of Organizations

MIT License

Downloads
1.2K
Stars
38
Committers
10

todo

  • docs

todo v2

  • unit test improvements
  • AbacUtil validation improvements
  • AbacRules() and AbacArray Validation together
  • interface tests

backlog

  • config e aranacak model klasörü eklenecek ?? AStart a mı eklemek lazım?
  • abac rule'u eloquent'a - dönüştüren builder ?? şimdilik scope içinden yapıldı
  • model'in rule'larını alan servis veya util ?

{
    "&&": [
        {
            "==": [
                "$attribute",
                "asd"
            ]
        },
        {
            "==": [
                "$attribute",
                "asd"
            ]
        },
        {
            "||": [
                {
                    "==": [
                        "$attribute",
                        "asd"
                    ]
                },
                {
                    "==": [
                        "$attribute",
                        "asd"
                    ]
                }
            ]
        }
    ]
}

[
    "&&" => [
                ["==" => [ "attribute" => "$attribute", "value" => "asasd"]]
            ],
            ["||" =>
                [
                    ["==" => [ "attribute" => "$attribute", "value" => "asasd"]],
                ]
            ]
    ]
]


[
    "&&" => [
                ["=" => [ "attribute" => "model", "value" => "opel"]],
                [">" => [ "attribute" => "age", "value" => "2020"]],
                "||" => [
                    ["=" => [ "attribute" => "model", "value" => "mercedes"]],
                ]
            ],
    ]
]