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

Permissions wrong naming? #7

Open
hoffiez opened this issue Aug 3, 2020 · 2 comments
Open

Permissions wrong naming? #7

hoffiez opened this issue Aug 3, 2020 · 2 comments

Comments

@hoffiez
Copy link

hoffiez commented Aug 3, 2020

In the file app/Policies/PostPolicy.php from where do you get policy names like "create posts", "edit own posts", when you have "publish articles" ... in the database/seeds/PermissionsDemoSeeder.php

@drbyte
Copy link
Owner

drbyte commented Aug 3, 2020

Good point.
You can see more complete examples of those permissions in the Feature Tests:
https://github.com/drbyte/spatie-permissions-demo/blob/master/tests/Feature/PostsTest.php

@Pawel-IT
Copy link
Contributor

Pawel-IT commented Dec 15, 2024

This should be fixed in the pull request I just made. #12

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

3 participants