| @@ -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 | |
| @@ -30,7 +30,7 @@ discard block | ||
| 30 | 30 | */ | 
| 31 | 31 | public function fields(Request $request) | 
| 32 | 32 |  	{ | 
| 33 | -		$guardOptions = collect(config('auth.guards'))->mapWithKeys(function ($value, $key) { | |
| 33 | +		$guardOptions = collect(config('auth.guards'))->mapWithKeys(function($value, $key) { | |
| 34 | 34 | return [$key => $key]; | 
| 35 | 35 | }); | 
| 36 | 36 | |
| @@ -46,9 +46,9 @@ discard block | ||
| 46 | 46 |  				->creationRules('unique:' . config('permission.table_names.permissions')) | 
| 47 | 47 |  				->updateRules('unique:' . config('permission.table_names.permissions') . ',name,{{resourceId}}'), | 
| 48 | 48 | |
| 49 | -			Text::make(__('laravel-nova-permission::permissions.display_name'),function (){ | |
| 50 | -				return __('laravel-nova-permission::permissions.display_names.'.$this->name); | |
| 51 | -			})->canSee(function (){ | |
| 49 | +			Text::make(__('laravel-nova-permission::permissions.display_name'), function() { | |
| 50 | +				return __('laravel-nova-permission::permissions.display_names.' . $this->name); | |
| 51 | +			})->canSee(function() { | |
| 52 | 52 |  				return is_array(__('laravel-nova-permission::permissions.display_names')); | 
| 53 | 53 | }), | 
| 54 | 54 | |