original_string: private function callView()
      {
          if ($this->confirm("Create crud views for the $this->resource resource?")) {
              $views = config('generators.resource_views');
              foreach ($views as $key => $name) {
                  $resource = $this->argument('resource');
                  if (str_contains($resource, '.')) {
                      $resource = str_replace('.', '/', $resource);
                  }
  
                  $this->callCommandFile('view', $this->getViewPath($resource), $key,
                      ['--name' => $name]);
              }
          }
      }
code: private function callView()
      {
          if ($this->confirm("Create crud views for the $this->resource resource?")) {
              $views = config('generators.resource_views');
              foreach ($views as $key => $name) {
                  $resource = $this->argument('resource');
                  if (str_contains($resource, '.')) {
                      $resource = str_replace('.', '/', $resource);
                  }
  
                  $this->callCommandFile('view', $this->getViewPath($resource), $key,
                      ['--name' => $name]);
              }
          }
      }
code_tokens: private function callView ( ) { if ( $ this -> confirm ( "Create crud views for the $this->resource resource?" ) ) { $ views = config ( 'generators.resource_views' ) ; foreach ( $ views as $ key => $ name ) { $ resource = $ this -> argument ( 'resource' ) ; if ( str_contains ( $ resource , '.' ) ) { $ resource = str_replace ( '.' , '/' , $ resource ) ; } $ this -> callCommandFile ( 'view' , $ this -> getViewPath ( $ resource ) , $ key , [ '--name' => $ name ] ) ; } } }
docstring: Generate the resource views
docstring_tokens: Generate the resource views