/**
  * Generate a new resourceful controller file.
  *
  * @return void
  */
 protected function generateController()
 {
     $controller = $this->input->getArgument('name');
     // Once we have the controller and resource that we are going to be generating
     // we will grab the path and options. We allow the developers to include or
     // exclude given methods from the resourceful controllers we're building.
     $path = $this->getPath();
     $options = $this->getBuildOptions();
     $this->generator->make($controller, $path, $options);
 }
 /**
  * Generate a new resourceful controller file.
  *
  * @return void
  */
 protected function generateController()
 {
     // Once we have the controller and resource that we are going to be generating
     // we will grab the path and options. We allow the developers to include or
     // exclude given methods from the resourceful controllers we're building.
     $controller = $this->input->getArgument('name');
     $path = $this->getPath();
     $options = $this->getBuildOptions();
     // Finally, we're ready to generate the actual controller file on disk and let
     // the developer start using it. The controller will be stored in the right
     // place based on the naemspace of this controller specified by commands.
     $this->generator->make($controller, $path, $options);
     $this->info('Controller created successfully!');
 }