Skip to content

Commit 29acd29

Browse files
committed
2 parents 698dc1a + d57494b commit 29acd29

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,24 @@ Check if a User is a Root User
116116
isRootUser(int user_id) // returns true or false
117117
```
118118

119+
Fetch Permissions
120+
```php
121+
fetchPermissions(int $status) // active = 1 or inactive = 0
122+
// $status is optional if is empty all permissions will be fetched
123+
```
124+
125+
Fetch Roles
126+
```php
127+
fetchRoles(int $status) // active = 1 or inactive = 0
128+
// $status is optional if is empty all roles will be fetched
129+
```
130+
131+
Fetch User Roles
132+
```php
133+
fetchUserRoles(int $user_id)
134+
// $user_id is id of the user from App\Models\User
135+
```
136+
119137
## Changelog
120138

121139
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

0 commit comments

Comments
 (0)