AdminRoleFilter.php 318 B

12345678910111213141516
  1. <?php
  2. namespace App\Filters;
  3. use App\Filters\Traits\RolePermissionFilter;
  4. class AdminRoleFilter extends Filter
  5. {
  6. use RolePermissionFilter;
  7. protected $simpleFilters = [
  8. 'id',
  9. 'name' => ['like', '%?%'],
  10. 'slug' => ['like', '%?%'],
  11. ];
  12. protected $filters = ['permission_name'];
  13. }