public static function safePlural($value)
    {
        $plural = str_plural($value);
        if ($plural == $value) {
            $plural = $value.'s';
            echo 'warning: automatic pluralization of '.$value.' failed, using '.$plural.LF;
        }

        return $plural;
    }
public static function safePlural($value)
    {
        $plural = str_plural($value);
        if ($plural == $value) {
            $plural = $value.'s';
            echo 'warning: automatic pluralization of '.$value.' failed, using '.$plural.LF;
        }

        return $plural;
    }
public static function safePlural ( $ value ) { $ plural = str_plural ( $ value ) ; if ( $ plural == $ value ) { $ plural = $ value . 's' ; echo 'warning: automatic pluralization of ' . $ value . ' failed, using ' . $ plural . LF ; } return $ plural ; }
Use laravel pluralization, and if that one fails give a warning and just append "s".

@param $value

@return string
Use laravel pluralization and if that one fails give a warning and just append s .