public function getModelName($modelName = null)
    {
        $modelName = is_null($modelName) ? $this->argument('name') : $modelName;
        $model_name = ucfirst(class_basename($modelName));
        $plural_model_name = str_plural($model_name);
        $modelPath = $this->getModelPath($modelName);
        $modelNamespace = $this->getModelNamespace($modelPath);

        return $this->modelNames = [
            'model_namespace'           => $modelNamespace,
            'full_model_name'           => $modelNamespace.'\\'.$model_name,
            'plural_model_name'         => $plural_model_name,
            'model_name'                => $model_name,
            'table_name'                => snake_case($plural_model_name),
            'lang_name'                 => snake_case($model_name),
            'collection_model_var_name' => camel_case($plural_model_name),
            'single_model_var_name'     => camel_case($model_name),
            'model_path'                => $modelPath,
        ];
    }
public function getModelName($modelName = null)
    {
        $modelName = is_null($modelName) ? $this->argument('name') : $modelName;
        $model_name = ucfirst(class_basename($modelName));
        $plural_model_name = str_plural($model_name);
        $modelPath = $this->getModelPath($modelName);
        $modelNamespace = $this->getModelNamespace($modelPath);

        return $this->modelNames = [
            'model_namespace'           => $modelNamespace,
            'full_model_name'           => $modelNamespace.'\\'.$model_name,
            'plural_model_name'         => $plural_model_name,
            'model_name'                => $model_name,
            'table_name'                => snake_case($plural_model_name),
            'lang_name'                 => snake_case($model_name),
            'collection_model_var_name' => camel_case($plural_model_name),
            'single_model_var_name'     => camel_case($model_name),
            'model_path'                => $modelPath,
        ];
    }
public function getModelName ( $ modelName = null ) { $ modelName = is_null ( $ modelName ) ? $ this -> argument ( 'name' ) : $ modelName ; $ model_name = ucfirst ( class_basename ( $ modelName ) ) ; $ plural_model_name = str_plural ( $ model_name ) ; $ modelPath = $ this -> getModelPath ( $ modelName ) ; $ modelNamespace = $ this -> getModelNamespace ( $ modelPath ) ; return $ this -> modelNames = [ 'model_namespace' => $ modelNamespace , 'full_model_name' => $ modelNamespace . '\\' . $ model_name , 'plural_model_name' => $ plural_model_name , 'model_name' => $ model_name , 'table_name' => snake_case ( $ plural_model_name ) , 'lang_name' => snake_case ( $ model_name ) , 'collection_model_var_name' => camel_case ( $ plural_model_name ) , 'single_model_var_name' => camel_case ( $ model_name ) , 'model_path' => $ modelPath , ] ; }
Generate class properties for model names in different usage.

@return array
Generate class properties for model names in different usage .