Execute the console command.

@return void
484594
public function fire()
  {
    $name = $this->option('rout_name');

    $this->line('');
    $this->info( "Routes file: app/http/routes.php" );

    $message = "A single route to handle every action in a RESTful controller".
        " will be appended to your routes.php file. This may be used with a workflow".
        " controller generated using [-r|--restful] option.";


    $this->comment( $message );
    $this->line('');

    if ( $this->confirm("Proceed with the append? [Yes|no]") )
    {
      $this->line('');

      $this->info( "Appending routes..." );
      if( $this->appendRoutes( $name ) )
      {
        $this->info( "app/http/routes.php Patched successfully!" );
      }
      else{
        $this->error(
          "Coudn't append content to app/routes.php\nCheck the".
          " write permissions within the file."
        );
      }

      $this->line('');

    }
  }
850465
public function handle()
	{
		$connection = $this->argument('connection') ?: $this->config->get('queue.default');
		$queue = $this->argument('queue') ?: $this->config->get('queue.connections.' . $connection  . '.queue');

		$this->info(sprintf('Clearing queue "%s" on "%s"', $queue, $connection));
		$cleared = $this->clearer->clear($connection, $queue);
		$this->info(sprintf('Cleared %d jobs', $cleared));
	}
1213733
public function handle()
    {
        $basePath = $this->getMigrationPath();
        $migrations = $this->migrator->getMigrationFiles($basePath, false);
        $count = count($migrations);

        if ($count == 0) {
            $this->comment('No migrations to move');

            return;
        }

        foreach ($migrations as $migration_name => $migration_path) {
            $datePath = $this->migrator->getDateFolderStructure($migration_name);

            // Create folder if it does not already exist
            if (! $this->files->exists($basePath.'/'.$datePath)) {
                $this->files->makeDirectory($basePath.'/'.$datePath, 0775, true);
            }

            // Move the migration into its new folder
            $this->files->move($basePath.'/'.$migration_name.'.php', $basePath.'/'.$datePath.$migration_name.'.php');
        }

        $this->info('Migrations organised successfully ('.$count.' migrations moved)');
    }
619561
public function handle()
    {
        do {
            if (!isset($validator) || $validator->errors()->has("username")) {
                if (isset($validator) && $validator->errors()->has("username")) {
                    $this->error($validator->errors()->first("username"));
                }
                $data["username"] = $this->ask("User's username: ");
            }

            if (!isset($validator) || $validator->errors()->has("firstname")) {
                if (isset($validator) && $validator->errors()->has("firstname")) {
                    $this->error($validator->errors()->first("firstname"));
                }
                $data["firstname"] = $this->ask("User's firstname: ");
            }

            if (!isset($validator) || $validator->errors()->has("lastname")) {
                if (isset($validator) && $validator->errors()->has("lastname")) {
                    $this->error($validator->errors()->first("lastname"));
                }
                $data["lastname"] = $this->ask("User's lastname: ");
            }

            if (!isset($validator) || $validator->errors()->has("email")) {
                if (isset($validator) && $validator->errors()->has("email")) {
                    $this->error($validator->errors()->first("email"));
                }
                $data["email"] = $this->ask("User's email: ");
                $data["email_confirmation"] = $this->ask("Email again: ");
            }

            if (!isset($validator) || $validator->errors()->has("password")) {
                if (isset($validator) && $validator->errors()->has("password")) {
                    $this->error($validator->errors()->first("password"));
                }
                $data["password"] = $this->secret("User's password: ");
                $data["password_confirmation"] = $this->secret("Password again: ");
            }

            $validator = new Validator;

            $validator = Validator::make($data, [
                'username' => 'required',
                'firstname' => 'required',
                'lastname' => 'required',
                'email' => 'required|unique:admin_users,email|confirmed',
                'password' => 'required|confirmed'
            ]);
        } while ($validator->fails());

        $user = new AdminUser;
        $user->username = $data["username"];
        $user->firstname = $data["firstname"];
        $user->lastname = $data["lastname"];
        $user->email = $data["email"];
        $user->is_active = true;
        $user->password = bcrypt($data["password"]);
        $user->save();

        $user->addRoleByName('administrator');
    }
1219047
public function handle()
    {
        if (!$this->confirmToProceed()) {
            return;
        }

        $this->migrator->setConnection($this->option('database'));
        
        $repository = modules()->location($this->option('location'));
        $paths      = $this->getMigrationPaths($repository);

        $this->migrator->setOutput($this->output)->rollback(
            $paths, ['pretend' => $this->option('pretend'), 'step' => (int)$this->option('step')]
        );
    }
608587
public function handle()
    {

        $this->modelName = $this->formatModel($this->argument('ModelName'));

        $this->modelPath = $this->formatModelPath($this->argument('ModelName'));

        $this->setCommandType($this->argument('command'));

        $this->setCrudPaths();

        if ( $this->deleteFiles() ) {

            $this->sendSuccessMessage();

            return;

        }

        $this->error('Oops, something went wrong!');


    }
100345
public function handle()
    {
        $this->currentRoot = trim($this->laravel->getNamespace(), '\\');

        $this->setAppDirectoryNamespace();
        $this->setBootstrapNamespaces();
        $this->setConfigNamespaces();
        $this->setComposerNamespace();
        $this->setDatabaseFactoryNamespaces();

        $this->info('Application namespace set!');

        $this->composer->dumpAutoloads();

        $this->call('optimize:clear');
    }
1011598
public function handle()
    {

        $command = $this->argument('function') ? $this->argument('function') : 'create';
        $param = $this->argument('params') ? $this->argument('params') : '';
        if (is_callable([$this, $command])) {
            $this->$command($param);
        } else {
            $this->error(sprintf('%s command not found', $command));
        }
    }
1293572
public function handle()
    {
        if ($this->shouldBeFailed()) {
            return;
        }

        $database = $this->config['database'] ?? null;
        $migrator = $this->resolveMigrator();

        if (! $this->shouldBeDelayed()) {
            $migrator->runInstall($this->model, $database);
            $migrator->runUp($this->model, $database);

            $this->delete();
        }
    }
216378
public function handle()
    {
        $this->createDirectories();

        $this->exportViews();

        if (! $this->option('views')) {
            $this->exportControllers();
            $this->exportForms();
            $this->files->append(
                base_path('routes/web.php'),
                $this->files->get(__DIR__.'/stubs/make/routes.stub')
            );
        }

        $this->info('Authentication scaffolding generated successfully.');
    }
878337
public function handle()
    {

        $this->folderName = $this->formatModelPath($this->argument('ModelName'));


        $path = base_path('resources/views/'. $this->folderName);

        if ( $this->removeViewFiles($path) ) {

            $this->sendViewSuccessMessage();


        } else {

            $this->error('No Such Directory');

        }

        $this->modelName = $this->formatModel($this->argument('ModelName'));

        $this->modelPath = $this->formatModelPath($this->argument('ModelName'));

        $this->setPaths();

        if ( $this->deleteCrudFiles() ) {

            $this->sendSuccessMessage();

            return;

        }

        $this->error('Oops, something went wrong!');




    }
275098
public function handle()
    {
        $clear = $this->clearTransients();
        if($clear !== 0) {
            $this->error(Helpers::getLang(get_class($this), 'error', ['count' => $clear]));
            return;
        }
        $this->info(Helpers::getLang(get_class($this), 'success', []));
        return;
    }
1103738
public function handle()
    {
        $this->abortCommandExecution();
        if (! $this->argument('action') || $this->argument('action') == 'list') {
            $this->listEnvVariables();
            return;
        }

        if ($this->argument('action') == 'edit') {
            $this->editEnvVariables();
            return;
        }

        if ($this->argument('action') == 'check') {
            $this->checkEnvVariable();
            return;
        }
    }
326173
public function handle()
    {
        $this->abortCommandExecution();
        $this->remotePath = $this->domain . '/.env';
        $this->runScp($this->localPath, $this->remotePath, null, true);
    }
493538
public function handle()
    {
        app('fgenerator')->run(
            $this->argument('group'),
            $this->argument('module'),
            $this->argument('model'),
            $this->argument('type'),
            $this->option('mode'),
            $this->option('output')
        );
    }
607912
public function handle()
    {
        if ($this->arguments()->getOption('country', false)) {
            $this->writeln('Country specified was ' . ucfirst($this->arguments()->getOption('country')) . '.');
            $this->exitWithSuccess();
        }
        $this->writeln('Flags huh? - Run this helloworld.php flags --country="england" and see what happens!');
        $this->exitWithError();
    }
360404
public function handle()
    {
        $id = $this->argument('id');
        $rule = $this->argument('rule');

        if( $id && $rule ) {
            $this->generateThumbByRule($id, $rule);
        } else {
            if( $id ) {
                $this->generateGlobalThumb($id);
            } else {

                if( $this->confirm('Are you sure you want to generate thumbs for all resources?') ) {
                    $list = HCResources::all()->pluck('id');

                    foreach ( $list as $id )
                        $this->generateGlobalThumb($id);
                }
            }
        }
    }