Open hoffiez opened 4 years ago
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
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
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