Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example with Controller #4

Open
abstractFlo opened this issue Jun 28, 2013 · 1 comment
Open

Example with Controller #4

abstractFlo opened this issue Jun 28, 2013 · 1 comment

Comments

@abstractFlo
Copy link

Can you create an example with a working Controller? Where must i set the rules e.g.??

Kind Regards

@wishfoundry
Copy link
Owner

Rules are defined using Auth::deny() or Auth::allow()
As is mentioned on the readme, the recommended place to put your rules is in a filter. That way your rules are reusable between controllers, and you only load the rules which will be required(faster). You could certainly define them in your controller if you wanted, or even in your views. But I wouldn't write up docs for your specific application.
More documentation is available however at: https://github.com/machuga/authority and the older: http://vespakoen.github.io/authority-laravel/

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

No branches or pull requests

2 participants