class
Illuminate
/
Support
/
Pluralizer
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Pluralizer
Properties
protected
static
$inflector static
The cached inflector instance.
Default: null
protected
static
$language string
The language that should be used by the inflector.
Default: 'english'
public
static
$uncountable string[]
Uncountable non-nouns word forms.
Contains words supported by Doctrine/Inflector/Rules/English/Uninflected.php
Default: array
Methods
public
static
plural ( $value , $count ) : string
Get the plural form of an English word.
Parameters
- $value string
- $count int|array|Countable
public
static
singular ( $value ) : string
Get the singular form of an English word.
Parameters
- $value string
protected
static
uncountable ( $value ) : bool
Determine if the given value is uncountable.
Parameters
- $value string
protected
static
matchCase ( $value , $comparison ) : string
Attempt to match the case on two strings.
Parameters
- $value string
- $comparison string
public
static
inflector ( ) : Doctrine\...\Inflector
Get the inflector instance.
public
static
useLanguage ( string $language ) : void
Specify the language that should be used by the inflector.
Parameters
- $language string