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
{{ message }}
This repository was archived by the owner on Aug 20, 2023. It is now read-only.
Permission::destroy([1,2,3]); // birden fazla permission id'ler ile silme
80
80
```
81
+
#### Role isimlerine göre kullanıcıları alma
82
+
```role()``` metoduyla sadece belirttiğiniz role sahip kullanıcıları alırken, ```exceptRole()``` metoduyla belirttiğiniz roller dışındaki tüm kullanıcıları alabilirsiniz. Rol isim veya isimleri her zaman ```array``` içinde tanımlanmalıdır.
81
83
82
-
> Aşağıda kullanılan rol ve yetki isimleri sadece örnektir. CRUD işlemleri ile kendi oluşturduğunuz rol ve yetki isimlerini kullanmalısınız. Rol ve yetki sorgulamaları için '**slug**' bilgisi ölçüt alınır.
84
+
```php
85
+
<?php
86
+
User::role(['admin'])->get();
87
+
User::role(['admin', 'editor'])->get();
88
+
89
+
User::exceptRole(['admin'])->get();
90
+
User::exceptRole(['editor', 'customer'])->get();
91
+
```
83
92
84
93
#### Rol ve Yetki Sorgulama
85
94
Tüm sorgulama metotları her zaman bool (true/false) döner. Aşağıdaki örnekler PHP kodları içinde kullanılır.
0 commit comments