public static function shouldBePlural($key)
    {
        $config = self::getArrayBaseValue('plural_names_for', [
            'controller-name' => true,
            'request-form-name' => true,
            'route-group' => true,
            'language-file-name' => true,
            'resource-file-name' => true,
            'table-name' => true,
        ]);

        if (isset($config[$key])) {
            return (bool) $config[$key];
        }

        return ($key != 'model-name');
    }
public static function shouldBePlural($key)
    {
        $config = self::getArrayBaseValue('plural_names_for', [
            'controller-name' => true,
            'request-form-name' => true,
            'route-group' => true,
            'language-file-name' => true,
            'resource-file-name' => true,
            'table-name' => true,
        ]);

        if (isset($config[$key])) {
            return (bool) $config[$key];
        }

        return ($key != 'model-name');
    }
public static function shouldBePlural ( $ key ) { $ config = self :: getArrayBaseValue ( 'plural_names_for' , [ 'controller-name' => true , 'request-form-name' => true , 'route-group' => true , 'language-file-name' => true , 'resource-file-name' => true , 'table-name' => true , ] ) ; if ( isset ( $ config [ $ key ] ) ) { return ( bool ) $ config [ $ key ] ; } return ( $ key != 'model-name' ) ; }
Checks if a given file type should be a plural or not.

@return array
Checks if a given file type should be a plural or not .