public function getPath($name)
    {
        $segments = explode('\\', $name);

        array_shift($segments);
        if($this->path)
            return $this->path.'/'.ucfirst(array_last($segments)).'Factory.php';
        else
            return database_path('factories/'.ucfirst(array_last($segments))).'Factory.php';

    }
public function getPath($name)
    {
        $segments = explode('\\', $name);

        array_shift($segments);
        if($this->path)
            return $this->path.'/'.ucfirst(array_last($segments)).'Factory.php';
        else
            return database_path('factories/'.ucfirst(array_last($segments))).'Factory.php';

    }
public function getPath ( $ name ) { $ segments = explode ( '\\' , $ name ) ; array_shift ( $ segments ) ; if ( $ this -> path ) return $ this -> path . '/' . ucfirst ( array_last ( $ segments ) ) . 'Factory.php' ; else return database_path ( 'factories/' . ucfirst ( array_last ( $ segments ) ) ) . 'Factory.php' ; }
Get path for migration file.

@param string $name

@return string
Get path for migration file .