/**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     if (!$this->commandData->skipMigration and !$this->commandData->fromTable) {
         $migrationGenerator = new MigrationGenerator($this->commandData);
         $migrationGenerator->generate();
     }
     $modelGenerator = new ModelGenerator($this->commandData);
     $modelGenerator->generate();
     $requestGenerator = new RequestGenerator($this->commandData);
     $requestGenerator->generate();
     $repositoryGenerator = new RepositoryGenerator($this->commandData);
     $repositoryGenerator->generate();
     $repoControllerGenerator = new ViewControllerGenerator($this->commandData);
     $repoControllerGenerator->generate();
     $viewsGenerator = new ViewGenerator($this->commandData);
     $viewsGenerator->generate();
     $routeGenerator = new RoutesGenerator($this->commandData);
     $routeGenerator->generate();
     if (!$this->commandData->skipMigration) {
         if ($this->confirm("\nDo you want to migrate database? [y|N]", false)) {
             $this->call('migrate');
         }
     }
 }
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     if (!$this->commandData->skipMigration) {
         $migrationGenerator = new MigrationGenerator($this->commandData);
         $migrationGenerator->generate();
     }
     $modelGenerator = new ModelGenerator($this->commandData);
     $modelGenerator->generate();
     $requestGenerator = new RequestGenerator($this->commandData);
     $requestGenerator->generate();
     $repositoryGenerator = new RepositoryGenerator($this->commandData);
     $repositoryGenerator->generate();
     $repoControllerGenerator = new APIControllerGenerator($this->commandData);
     $repoControllerGenerator->generate();
     $viewsGenerator = new ViewGenerator($this->commandData);
     $viewsGenerator->generate();
     $repoControllerGenerator = new ViewControllerGenerator($this->commandData);
     $repoControllerGenerator->generate();
     $routeGenerator = new RoutesGenerator($this->commandData);
     $routeGenerator->generate();
     $menuGenerator = new MenuGenerator($this->commandData);
     $menuGenerator->generate();
     $this->call('migrate');
 }
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     $followRepoPattern = $this->confirm("\nDo you want to generate repository ? (y|N)", false);
     $migrationGenerator = new MigrationGenerator($this->commandData);
     $migrationGenerator->generate();
     $modelGenerator = new ModelGenerator($this->commandData);
     $modelGenerator->generate();
     $requestGenerator = new RequestGenerator($this->commandData);
     $requestGenerator->generate();
     if ($followRepoPattern) {
         $repositoryGenerator = new RepositoryGenerator($this->commandData);
         $repositoryGenerator->generate();
         $repoControllerGenerator = new RepoViewControllerGenerator($this->commandData);
         $repoControllerGenerator->generate();
     } else {
         $controllerGenerator = new ViewControllerGenerator($this->commandData);
         $controllerGenerator->generate();
     }
     $viewsGenerator = new ViewGenerator($this->commandData);
     $viewsGenerator->generate();
     $routeGenerator = new RoutesGenerator($this->commandData);
     $routeGenerator->generate();
     if ($this->confirm("\nDo you want to migrate database? [y|N]", false)) {
         $this->call('migrate');
     }
 }
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     parent::handle();
     if (!$this->commandData->skipMigration) {
         $migrationGenerator = new MigrationGenerator($this->commandData);
         $migrationGenerator->generate();
     }
     $modelGenerator = new ModelGenerator($this->commandData);
     $modelGenerator->generate();
     $presenterGenerator = new PresenterGenerator($this->commandData);
     $presenterGenerator->generate();
     $apipresenterGenerator = new APIPresenterGenerator($this->commandData);
     $apipresenterGenerator->generate();
     $transformerGenerator = new TransformerGenerator($this->commandData);
     $transformerGenerator->generate();
     $requestGenerator = new RequestGenerator($this->commandData);
     $requestGenerator->generate();
     $repositoryGenerator = new RepositoryGenerator($this->commandData);
     $repositoryGenerator->generate();
     $irepositoryGenerator = new IRepositoryGenerator($this->commandData);
     $irepositoryGenerator->generate();
     $appBindGenerator = new AppBindGenerator($this->commandData);
     $appBindGenerator->generate();
     $repoControllerGenerator = new APIControllerGenerator($this->commandData);
     $repoControllerGenerator->generate();
     $viewsGenerator = new ViewGenerator($this->commandData);
     $viewsGenerator->generate();
     $repoControllerGenerator = new ViewControllerGenerator($this->commandData);
     $repoControllerGenerator->generate();
     $routeGenerator = new RoutesGenerator($this->commandData);
     $routeGenerator->generate();
     if ($this->commandData->breadcrumbs) {
         $breadcrumbsGenerator = new BreadcrumbsGenerator($this->commandData);
         $breadcrumbsGenerator->generate();
     }
     if ($this->confirm("\nDo you want to migrate database? [y|N]", false)) {
         $this->call('migrate');
     }
 }