Skip to content

Commit dbf7ef7

Browse files
cleanup, remove support for search translation
1 parent 7f8a05c commit dbf7ef7

File tree

5 files changed

+4
-106
lines changed

5 files changed

+4
-106
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ Finally, add the `ForgetCachedPermissions` class to your `config/nova.php` middl
7272
\Insenseanalytics\LaravelNovaPermission\ForgetCachedPermissions::class,
7373
],
7474
```
75-
Support for localized permission search, you can enter the display name for permission search,If you don't need this feature, you can remove the `PermissionSearchTranslationTrait` trait from the [Using Custom Permission Resource Classes](https://github.com/insenseanalytics/laravel-nova-permission#using-custom-rolepermission-resource-classes).
75+
76+
## Localization
7677

7778
You can use the artisan command line tool to publish localization files:
7879

src/Permission.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class Permission extends Resource
99
{
10-
use PermissionResourceTrait,PermissionSearchTranslationTrait;
10+
use PermissionResourceTrait;
1111

1212
/**
1313
* The model the resource corresponds to.
@@ -58,5 +58,4 @@ public static function singularLabel()
5858
{
5959
return __('laravel-nova-permission::resources.Permission');
6060
}
61-
6261
}

src/PermissionSearchTranslationTrait.php

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/Role.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class Role extends Resource
99
{
10-
use RoleResourceTrait, TranslationHandelTrait;
10+
use RoleResourceTrait;
1111

1212
/**
1313
* The model the resource corresponds to.

src/TranslationHandelTrait.php

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)