@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function fields(Request $request) |
| 31 | 31 | { |
| 32 | - $guardOptions = collect(config('auth.guards'))->mapWithKeys(function ($value, $key) { |
|
| 32 | + $guardOptions = collect(config('auth.guards'))->mapWithKeys(function($value, $key) { |
|
| 33 | 33 | return [$key => $key]; |
| 34 | 34 | }); |
| 35 | 35 | |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'name' => 'Name', |
|
| 5 | - 'guard_name' => 'Guard Name', |
|
| 6 | - 'created_at' => 'Created at', |
|
| 7 | - 'updated_at' => 'Updated at', |
|
| 4 | + 'name' => 'Name', |
|
| 5 | + 'guard_name' => 'Guard Name', |
|
| 6 | + 'created_at' => 'Created at', |
|
| 7 | + 'updated_at' => 'Updated at', |
|
| 8 | 8 | ]; |
| 9 | 9 | \ No newline at end of file |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'Roles' => 'Roles', |
|
| 5 | - 'Role' => 'Role', |
|
| 6 | - 'Permissions' => 'Permissions', |
|
| 7 | - 'Permission' => 'Permission', |
|
| 4 | + 'Roles' => 'Roles', |
|
| 5 | + 'Role' => 'Role', |
|
| 6 | + 'Permissions' => 'Permissions', |
|
| 7 | + 'Permission' => 'Permission', |
|
| 8 | 8 | ]; |
| 9 | 9 | \ No newline at end of file |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'name' => 'Name', |
|
| 5 | - 'display_name' => 'Display Name', |
|
| 6 | - 'guard_name' => 'Guard Name', |
|
| 7 | - 'created_at' => 'Created at', |
|
| 8 | - 'updated_at' => 'Updated at', |
|
| 4 | + 'name' => 'Name', |
|
| 5 | + 'display_name' => 'Display Name', |
|
| 6 | + 'guard_name' => 'Guard Name', |
|
| 7 | + 'created_at' => 'Created at', |
|
| 8 | + 'updated_at' => 'Updated at', |
|
| 9 | 9 | ]; |
| 10 | 10 | \ No newline at end of file |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | - 'sidebar-label' => 'Roles & Permissions', |
|
| 4 | + 'sidebar-label' => 'Roles & Permissions', |
|
| 5 | 5 | ]; |
| 6 | 6 | \ No newline at end of file |
@@ -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 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function title() { |
| 24 | 24 | |
| 25 | - return array_has(__('laravel-nova-permission::permissions.display_names'),$this->name) |
|
| 25 | + return array_has(__('laravel-nova-permission::permissions.display_names'), $this->name) |
|
| 26 | 26 | ? __("laravel-nova-permission::permissions.display_names.{$this->name}") |
| 27 | 27 | : $this->{static::$title}; |
| 28 | 28 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | public function fields(Request $request) |
| 43 | 43 | { |
| 44 | - $guardOptions = collect(config('auth.guards'))->mapWithKeys(function ($value, $key) { |
|
| 44 | + $guardOptions = collect(config('auth.guards'))->mapWithKeys(function($value, $key) { |
|
| 45 | 45 | return [$key => $key]; |
| 46 | 46 | }); |
| 47 | 47 | |
@@ -57,9 +57,9 @@ discard block |
||
| 57 | 57 | ->creationRules('unique:' . config('permission.table_names.permissions')) |
| 58 | 58 | ->updateRules('unique:' . config('permission.table_names.permissions') . ',name,{{resourceId}}'), |
| 59 | 59 | |
| 60 | - Text::make(__('laravel-nova-permission::permissions.display_name'),function (){ |
|
| 61 | - return __('laravel-nova-permission::permissions.display_names.'.$this->name); |
|
| 62 | - })->canSee(function (){ |
|
| 60 | + Text::make(__('laravel-nova-permission::permissions.display_name'), function() { |
|
| 61 | + return __('laravel-nova-permission::permissions.display_names.' . $this->name); |
|
| 62 | + })->canSee(function() { |
|
| 63 | 63 | return is_array(__('laravel-nova-permission::permissions.display_names')); |
| 64 | 64 | }), |
| 65 | 65 | |