Nwidart\Modules\Module::getExtraPath PHP Method

getExtraPath() public method

Get extra path.
public getExtraPath ( $path ) : string
$path
return string
    public function getExtraPath($path)
    {
        return $this->getPath() . '/' . $path;
    }

Usage Example

Example #1
0
 /**
  * Get migration path.
  *
  * @return string
  */
 public function getPath()
 {
     $config = $this->module->get('migration');
     $path = is_array($config) && array_key_exists('path', $config) ? $config['path'] : config('modules.paths.generator.migration');
     return $this->module->getExtraPath($path);
 }