Skip to content

Commit

Permalink
And from plurals
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoungportable committed Mar 7, 2024
1 parent b5bb879 commit a8538e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Filament/Resources/AbstractResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,13 @@ public static function getTitleCaseModelLabel(): string

return Str::title(static::getModelLabel());
}

public static function getTitleCasePluralModelLabel(): string
{
if (! static::hasTitleCaseModelLabel()) {
return static::getPluralModelLabel();
}

return Str::title(static::getPluralModelLabel());
}
}

0 comments on commit a8538e3

Please sign in to comment.