public static function singular($word)
    {
        $definitions = Config::getPluralDefinitions();

        if (($singular = array_search($word, $definitions)) !== false) {
            return $singular;
        }

        return LaravelStr:: singular($word);
    }
public static function singular($word)
    {
        $definitions = Config::getPluralDefinitions();

        if (($singular = array_search($word, $definitions)) !== false) {
            return $singular;
        }

        return LaravelStr:: singular($word);
    }
public static function singular ( $ word ) { $ definitions = Config :: getPluralDefinitions ( ) ; if ( ( $ singular = array_search ( $ word , $ definitions ) ) !== false ) { return $ singular ; } return LaravelStr :: singular ( $ word ) ; }
Gets a singular version of a given word.

@param string $word

@return string
Gets a singular version of a given word .