Skip to content
This repository was archived by the owner on Aug 20, 2023. It is now read-only.

Commit 2b3ffa8

Browse files
Updated README_TR
1 parent 5969053 commit 2b3ffa8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README_TR.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ $role->hasPermission(['edit-post', 'delete-post']);
121121
$role->setPermission('edit-post');
122122
$role->setPermission(['edit-post', 'delete-post', 'upload']); // array olarak çoklu atama
123123
```
124+
##### Yetkiler için rol atama işlemleri;
125+
```php
126+
<?php
127+
$permission = Permission::find(1);
128+
129+
# bir yetki için rol/ler atama
130+
$permission->roles()->sync([1,2,3]);
131+
```
124132
#### Blade dosyalarında rol ve yetki sorgulama
125133
Laravel'in blade şablon dosyalarında da rol ve yetki sorgulaması kolaylıkla yapılabilir.
126134
```blade

0 commit comments

Comments
 (0)