/**
  * Get the path to the file that should be generated.
  *
  * @param      $srcType         String  name of the directory type
  *                              code            - directory for code (app or workbench)
  *                              commands
  *                              config
  *                              controllers
  *                              lang
  *                              migrations
  *                              models
  *                              public
  *                              routes          - directory/file for the routes file
  *                              seeds
  *                              templates
  *                              tests
  *                              views
  *
  *                              The returned path will be adjusted for bench option to map the directory to the right location
  *                              in the workbench/vendor/package subdirectory based on laravel version
  *
  * @param null $suffix
  *
  * @return string
  */
 protected function getSrcPath($srcType, $suffix = null)
 {
     if ($this->option('path')) {
         $srcPath = $this->option('path');
     } else {
         $srcPath = GeneratorsServiceProvider::getSrcPath($srcType, $this->option('bench'));
     }
     return $suffix ? end_with($srcPath, '/') . $suffix : $srcPath;
 }