JosephSilber / bouncer

Laravel Eloquent roles and abilities.
MIT License
3.43k stars 330 forks source link

"Bouncer is an elegant, framework-agnostic approach" #595

Closed bert-w closed 2 years ago

bert-w commented 2 years ago

I'm quoting this from the first line of the readme:

"Bouncer is an elegant, framework-agnostic approach"

composer.json:

"require": {
        "php": "^7.2|^8.0",
        "illuminate/auth": "^6.0|^7.0|^8.0|^9.0",
        "illuminate/cache": "^6.0|^7.0|^8.0|^9.0",
        "illuminate/container": "^6.0|^7.0|^8.0|^9.0",
        "illuminate/contracts": "^6.0|^7.0|^8.0|^9.0",
        "illuminate/database": "^6.0|^7.0|^8.0|^9.0"
    },

Explain your version of framework-agnostic please :)

JosephSilber commented 2 years ago

You left out the end of that sentence. It's framework agnostic "for any app using Eloquent models".

See here in the readme how to install Bouncer in a non-Laravel app.