TIPOFF / authorization

Laravel Package for opinionated authorization style
MIT License
0 stars 1 forks source link

Permission Base Migration #23

Open drewroberts opened 3 years ago

drewroberts commented 3 years ago

There should be a PermissionMigration that is extended in all the other packages that has a short format for adding a list of new Permissions (#22) for that package.

The permissions will use the findOrCreate method when added to the table to prevent overwriting the Permission in an app's existing table and changing the id number.

It will also add every Permission in the list to the admin Role.

There should also be a Helper function for adding specific Permissions to the other default Roles (#21).