/**
  * 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();
     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();
     $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();
     $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();
     $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();
     $migrationGenerator = new MigrationGenerator($this->commandData);
     $migrationGenerator->generate();
     $modelGenerator = new ModelGenerator($this->commandData);
     $modelGenerator->generate();
     $repositoryGenerator = new RepositoryGenerator($this->commandData);
     $repositoryGenerator->generate();
     $repoControllerGenerator = new APIControllerGenerator($this->commandData);
     $repoControllerGenerator->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();
     \Storage::prepend('laravel.log', 'Model Generated');
     $AdminModelGenerator = new AdminModelGenerator($this->commandData);
     $AdminModelGenerator->generate();
     $requestGenerator = new RequestGenerator($this->commandData);
     $requestGenerator->generate();
     $adminRequestGenerator = new AdminRequestGenerator($this->commandData);
     $adminRequestGenerator->generate();
     $repositoryGenerator = new RepositoryGenerator($this->commandData);
     $repositoryGenerator->generate();
     $adminRepositoryGenerator = new AdminRepositoryGenerator($this->commandData);
     $adminRepositoryGenerator->generate();
     $adminViewsGenerator = new AdminViewGenerator($this->commandData);
     $adminViewsGenerator->generate();
     $liveViewsGenerator = new LiveViewGenerator($this->commandData);
     $liveViewsGenerator->generate();
     $repoAdminControllerGenerator = new AdminControllerGenerator($this->commandData);
     $repoAdminControllerGenerator->generate();
     $repoControllerGenerator = new ViewControllerGenerator($this->commandData);
     $repoControllerGenerator->generate();
     $repoControllerGenerator = new APIControllerGenerator($this->commandData);
     $repoControllerGenerator->generate();
     $routeGenerator = new RoutesGenerator($this->commandData);
     $routeGenerator->generate();
     if ($this->confirm("\nDo you want to migrate database? [y|N]", false)) {
         $this->call('migrate');
     }
 }