Skip to content

Commit

Permalink
use ucfirst
Browse files Browse the repository at this point in the history
Signed-off-by: Lloric Mayuga Garcia <[email protected]>
  • Loading branch information
lloricode committed Aug 17, 2024
1 parent c59f9d9 commit 1244dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/RoleResource/Schema/PermissionSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private static function parentAbilitiesLabeled(CollectionSupport $permissionsDat

$ability = $permissionData->child_name ?? throw new \ErrorException('This should not happen');

$ability = Str::headline($ability);
$ability = Str::ucfirst($ability);

if (Config::boolean('filament-permission.translated', false)) {
$ability = trans($ability);
Expand Down

0 comments on commit 1244dd3

Please sign in to comment.