Singular and Plural Word Forms
Learn how to convert words to their singular or plural forms with the help of examples.
We'll cover the following...
In addition to the string translation helper methods and supporting features, Laravel provides simple ways to convert words to their singular or plural forms. By default, this feature works for English words, but we can enable it for Norwegian Bokmål, French, Portuguese, Spanish, and Turkish.
Laravel utilizes the Doctrine Inflector package under the hood and provides additional features (such as working with studly cased words) and a simple wrapper around its features.
To ...