protected function getModelNamespace($modelName, $modelDirectory)
    {
        if (!empty($modelDirectory)) {
            $modelDirectory = str_finish($modelDirectory, '\\');
        }

        $namespace = Helpers::getAppNamespace() . ltrim(Config::getModelsPath($modelDirectory . $modelName), '\\');

        return rtrim(Helpers::convertSlashToBackslash($namespace), '\\');
    }
protected function getModelNamespace($modelName, $modelDirectory)
    {
        if (!empty($modelDirectory)) {
            $modelDirectory = str_finish($modelDirectory, '\\');
        }

        $namespace = Helpers::getAppNamespace() . ltrim(Config::getModelsPath($modelDirectory . $modelName), '\\');

        return rtrim(Helpers::convertSlashToBackslash($namespace), '\\');
    }
protected function getModelNamespace ( $ modelName , $ modelDirectory ) { if ( ! empty ( $ modelDirectory ) ) { $ modelDirectory = str_finish ( $ modelDirectory , '\\' ) ; } $ namespace = Helpers :: getAppNamespace ( ) . ltrim ( Config :: getModelsPath ( $ modelDirectory . $ modelName ) , '\\' ) ; return rtrim ( Helpers :: convertSlashToBackslash ( $ namespace ) , '\\' ) ; }
Gets the namespace of the model

@param  string $modelName
@param  string $modelDirectory

@return string
Gets the namespace of the model