original_string: protected function getViewPath($name)
      {
          $pieces = explode('/', $name);
  
          // dont plural if reserve word
          foreach ($pieces as $k => $value) {
              if (!in_array($value, config('generators.reserve_words'))) {
                  $pieces[$k] = str_plural(snake_case($pieces[$k]));
              }
          }
  
          $name = implode('.', $pieces);
  
          //$name = implode('.', array_map('str_plural', explode('/', $name)));
  
          return strtolower(rtrim(ltrim($name, '.'), '.'));
      }
code: protected function getViewPath($name)
      {
          $pieces = explode('/', $name);
  
          // dont plural if reserve word
          foreach ($pieces as $k => $value) {
              if (!in_array($value, config('generators.reserve_words'))) {
                  $pieces[$k] = str_plural(snake_case($pieces[$k]));
              }
          }
  
          $name = implode('.', $pieces);
  
          //$name = implode('.', array_map('str_plural', explode('/', $name)));
  
          return strtolower(rtrim(ltrim($name, '.'), '.'));
      }
code_tokens: protected function getViewPath ( $ name ) { $ pieces = explode ( '/' , $ name ) ; // dont plural if reserve word foreach ( $ pieces as $ k => $ value ) { if ( ! in_array ( $ value , config ( 'generators.reserve_words' ) ) ) { $ pieces [ $ k ] = str_plural ( snake_case ( $ pieces [ $ k ] ) ) ; } } $ name = implode ( '.' , $ pieces ) ; //$name = implode('.', array_map('str_plural', explode('/', $name))); return strtolower ( rtrim ( ltrim ( $ name , '.' ) , '.' ) ) ; }
docstring: Get the path to the view file
  
  @param $name
  @return string
docstring_tokens: Get the path to the view file