You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-19
Original file line number
Diff line number
Diff line change
@@ -78,21 +78,14 @@ IN blade.php
78
78
```
79
79
80
80
### Functions List
81
-
`role`: Return the Role collection of modal.
82
-
83
-
`hasRole``@hasRole` : Check Loggedin User has the role.
84
-
85
-
`hasAnyRole``@hasAnyRole` : Checks if the user has any of the specified roles.
86
-
87
-
`permission`: Get the permission collection from permission modal.
88
-
89
-
`@hasPermission``@haspermission`: Check Loggedin user has the permission.
90
-
91
-
`hasAnyPermission``@hasAnyPermission`: Checks if the user has any of the specified permissions.
92
-
93
-
`hasAllPermission``@hasAllPermission`: Verifies that the user has all the specified permissions.
94
-
95
-
`hasExactPermissions``@hasExactPermissions`: Checks if the user has exactly the specified permissions.
81
+
-`role` : Return the Role collection of modal.
82
+
-`hasRole``@hasRole` : Check Loggedin User has the role.
83
+
-`hasAnyRole``@hasAnyRole` : Checks if the user has any of the specified roles.
84
+
-`permission` : Get the permission collection from permission modal.
85
+
-`@hasPermission``@haspermission` : Check Loggedin user has the permission.
86
+
-`hasAnyPermission``@hasAnyPermission` : Checks if the user has any of the specified permissions.
87
+
-`hasAllPermission``@hasAllPermission` : Verifies that the user has all the specified permissions.
88
+
-`hasExactPermissions``@hasExactPermissions` : Checks if the user has exactly the specified permissions.
96
89
97
90
## Seeding Roles and Permissions
98
91
You can create a seeder to start with some default roles and permissions. For example:
@@ -128,10 +121,10 @@ class RolesAndPermissionsSeeder extends Seeder
128
121
## Database Schema
129
122
Ensure your database schema is set up correctly. The following tables should exist:
130
123
131
-
-`roles`: To store roles.
132
-
-`permissions`: To store permissions.
133
-
-`role_permission`: Pivot table to manage many-to-many relationships between roles and permissions.
134
-
-`users`: Ensure there is a `role_id` column in the `users` table to associate users with their roles.
124
+
-`roles`: To store roles.
125
+
-`permissions`: To store permissions.
126
+
-`role_permission`: Pivot table to manage many-to-many relationships between roles and permissions.
127
+
-`users`: Ensure there is a `role_id` column in the `users` table to associate users with their roles.
135
128
136
129
## Conclusion
137
130
This package provides a simple way to manage user roles and permissions in your Laravel application. For further customization or additional features, feel free to contribute or reach out for support.
0 commit comments