protected function getNamespace($modelName, $modelDirectory)
    {
        $namespace = Helpers::getAppNamespace() . Config::getModelsPath($modelDirectory);

        return rtrim(Helpers::convertSlashToBackslash($namespace), '\\');
    }