@@ -8,8 +8,8 @@ discard block |
||
8 | 8 | class Role extends Resource |
9 | 9 | { |
10 | 10 | use RoleResourceTrait, TranslationHandelTrait { |
11 | - TranslationHandelTrait::applyFilters insteadof RoleResourceTrait; |
|
12 | - } |
|
11 | + TranslationHandelTrait::applyFilters insteadof RoleResourceTrait; |
|
12 | + } |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * The model the resource corresponds to. |
@@ -41,23 +41,23 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public static $displayInNavigation = false; |
43 | 43 | |
44 | - /** |
|
45 | - * Get the displayable label of the resource. |
|
46 | - * |
|
47 | - * @return string |
|
48 | - */ |
|
49 | - public static function label() |
|
50 | - { |
|
51 | - return __('laravel-nova-permission::resources.Roles'); |
|
52 | - } |
|
53 | - |
|
54 | - /** |
|
55 | - * Get the displayable singular label of the resource. |
|
56 | - * |
|
57 | - * @return string |
|
58 | - */ |
|
59 | - public static function singularLabel() |
|
60 | - { |
|
61 | - return __('laravel-nova-permission::resources.Role'); |
|
62 | - } |
|
44 | + /** |
|
45 | + * Get the displayable label of the resource. |
|
46 | + * |
|
47 | + * @return string |
|
48 | + */ |
|
49 | + public static function label() |
|
50 | + { |
|
51 | + return __('laravel-nova-permission::resources.Roles'); |
|
52 | + } |
|
53 | + |
|
54 | + /** |
|
55 | + * Get the displayable singular label of the resource. |
|
56 | + * |
|
57 | + * @return string |
|
58 | + */ |
|
59 | + public static function singularLabel() |
|
60 | + { |
|
61 | + return __('laravel-nova-permission::resources.Role'); |
|
62 | + } |
|
63 | 63 | } |
@@ -12,11 +12,11 @@ |
||
12 | 12 | public function boot() |
13 | 13 | { |
14 | 14 | $this->loadViewsFrom(__DIR__ . '/../resources/views', 'laravel-nova-permission'); |
15 | - $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-nova-permission'); |
|
15 | + $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-nova-permission'); |
|
16 | 16 | |
17 | - $this->publishes([ |
|
18 | - __DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-nova-permission'), |
|
19 | - ], 'laravel-nova-permission-lang'); |
|
17 | + $this->publishes([ |
|
18 | + __DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-nova-permission'), |
|
19 | + ], 'laravel-nova-permission-lang'); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
@@ -12,10 +12,10 @@ |
||
12 | 12 | public function boot() |
13 | 13 | { |
14 | 14 | $this->loadViewsFrom(__DIR__ . '/../resources/views', 'laravel-nova-permission'); |
15 | - $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-nova-permission'); |
|
15 | + $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'laravel-nova-permission'); |
|
16 | 16 | |
17 | 17 | $this->publishes([ |
18 | - __DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-nova-permission'), |
|
18 | + __DIR__ . '/../resources/lang' => resource_path('lang/vendor/laravel-nova-permission'), |
|
19 | 19 | ], 'laravel-nova-permission-lang'); |
20 | 20 | } |
21 | 21 |
@@ -8,8 +8,8 @@ discard block |
||
8 | 8 | class Permission extends Resource |
9 | 9 | { |
10 | 10 | use PermissionResourceTrait,TranslationHandelTrait { |
11 | - TranslationHandelTrait::applyFilters insteadof PermissionResourceTrait; |
|
12 | - } |
|
11 | + TranslationHandelTrait::applyFilters insteadof PermissionResourceTrait; |
|
12 | + } |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * The model the resource corresponds to. |
@@ -41,24 +41,24 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public static $displayInNavigation = false; |
43 | 43 | |
44 | - /** |
|
45 | - * Get the displayable label of the resource. |
|
46 | - * |
|
47 | - * @return string |
|
48 | - */ |
|
49 | - public static function label() |
|
50 | - { |
|
51 | - return __('laravel-nova-permission::resources.Permissions'); |
|
52 | - } |
|
44 | + /** |
|
45 | + * Get the displayable label of the resource. |
|
46 | + * |
|
47 | + * @return string |
|
48 | + */ |
|
49 | + public static function label() |
|
50 | + { |
|
51 | + return __('laravel-nova-permission::resources.Permissions'); |
|
52 | + } |
|
53 | 53 | |
54 | - /** |
|
55 | - * Get the displayable singular label of the resource. |
|
56 | - * |
|
57 | - * @return string |
|
58 | - */ |
|
59 | - public static function singularLabel() |
|
60 | - { |
|
61 | - return __('laravel-nova-permission::resources.Permission'); |
|
62 | - } |
|
54 | + /** |
|
55 | + * Get the displayable singular label of the resource. |
|
56 | + * |
|
57 | + * @return string |
|
58 | + */ |
|
59 | + public static function singularLabel() |
|
60 | + { |
|
61 | + return __('laravel-nova-permission::resources.Permission'); |
|
62 | + } |
|
63 | 63 | |
64 | 64 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | |
8 | 8 | class Permission extends Resource |
9 | 9 | { |
10 | - use PermissionResourceTrait,TranslationHandelTrait { |
|
10 | + use PermissionResourceTrait, TranslationHandelTrait { |
|
11 | 11 | TranslationHandelTrait::applyFilters insteadof PermissionResourceTrait; |
12 | 12 | } |
13 | 13 |