Skip to content

Commit 4c92150

Browse files
authored
Update README.md
1 parent 642f10d commit 4c92150

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,19 @@ $data = [
4242
'name' => 'Admin',
4343
'status' => 1 or 0
4444
];
45-
$permission_ids = [1, 5, 4];
45+
$permission_ids = array of permission ids // array(1, 5, 4);
4646
$create = createAccess($data, 'role', $permission_ids);
4747
echo $create;
4848
```
4949

50+
Create User Role
51+
```php
52+
$roles = array of roles // array(2, 5);
53+
$user_id = id of a user from laravel User Model // 1;
54+
$user_role = createUserRole($roles, $user_id);
55+
echo $user_role;
56+
```
57+
5058
## Changelog
5159

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

0 commit comments

Comments
 (0)