Skip to content

Commit 09bc437

Browse files
authored
Update README.md
1 parent db1bfdb commit 09bc437

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ echo $create;
3939
Update a Permission
4040
```php
4141
$data = [
42-
'data_id' => permission id from Obrainwave\AccessTree\Models\ // 3,
42+
'data_id' => permission id from Obrainwave\AccessTree\Models\Permission // 3,
4343
'name' => 'Add User',
4444
'status' => 1 or 0
4545
];
@@ -53,7 +53,7 @@ $data = [
5353
'name' => 'Admin',
5454
'status' => 1 or 0
5555
];
56-
$permission_ids = array of permission ids // array(1, 5, 4);
56+
$permission_ids = array of permission ids from Obrainwave\AccessTree\Models\Permission // array(1, 5, 4);
5757
$create = createAccess($data, 'role', $permission_ids);
5858
echo $create;
5959
```
@@ -65,14 +65,14 @@ $data = [
6565
'name' => 'Admin Staff',
6666
'status' => 1 or 0
6767
];
68-
$permission_ids = array of permission ids // array(10, 6, 3);
68+
$permission_ids = array of permission ids from Obrainwave\AccessTree\Models\Permission // array(10, 6, 3);
6969
$update = updateAccess($data, 'role', $permission_ids);
7070
echo $update;
7171
```
7272

7373
Create User Role
7474
```php
75-
$roles = array of roles // array(2, 5);
75+
$roles = array of roles from Obrainwave\AccessTree\Models\Role // array(2, 5);
7676
$user_id = id of a user from App\Models\User // 1;
7777
$user_role = createUserRole($roles, $user_id);
7878
echo $user_role;

0 commit comments

Comments
 (0)