Execute the console command.

@return void
764375
public function fire() {
        if(!$this->confirmToProceed()) {
            return;
        }

        $this->prepareDatabase();

        // The pretend option can be used for "simulating" the migration and grabbing
        // the SQL queries that would fire if the migration were to be run against
        // a database for real, which is helpful for double checking migrations.
        $pretend = $this->input->getOption('pretend');

        // migrate each path
        foreach($this->paths->getPaths() as $package => $path) {
            $this->info('Running migrations for ' . $package);

            $this->migrator->run($path, $pretend);

            // Once the migrator has run we will grab the note output and send it out to
            // the console screen, since the migrator itself functions without having
            // any instances of the OutputInterface contract passed into the class.
            foreach($this->migrator->getNotes() as $note) {
                $this->output->writeln($note);
            }
        }
    }
185731
public function handle()
    {
        if (! $this->preflighted()) return;

        $character_ids = User::doesntHave('refresh_token')
                ->select('id')
                ->where('id', '<>', 1)
                ->get()
                ->pluck('id');

        $character_ids->each(function ($character_id) {

            $character_info = $this->retrieve([
                'character_id' => $character_id,
            ]);

            if ($character_info->isCachedLoad()) return;

            CharacterInfo::firstOrNew(['character_id' => $character_id])->fill([
                'name'            => $character_info->name,
                'description'     => $character_info->optional('description'),
                'corporation_id'  => $character_info->corporation_id,
                'alliance_id'     => $character_info->optional('alliance_id'),
                'birthday'        => $character_info->birthday,
                'gender'          => $character_info->gender,
                'race_id'         => $character_info->race_id,
                'bloodline_id'    => $character_info->bloodline_id,
                'ancestry_id'    => $character_info->optional('ancestry_id'),
                'security_status' => $character_info->optional('security_status'),
                'faction_id'      => $character_info->optional('faction_id'),
            ])->save();
        });
    }
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));
	}
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');
    }
407121
public function handle()
    {
        $translationFiles = $this->manager->files();

        $this->syncKeysFromFiles($translationFiles);

        $this->syncKeysBetweenLanguages($translationFiles);

        $this->info('Done!');
    }
629587
public function handle()
    {
        $name = $this->ask('Name', 'Administrator');
        $email = $this->ask('Email', 'admin@example.com');
        $password = $this->ask('Password', 'secret');

        $data = $this->prepareData($name, $email, $password);

        $this->tryUpdatingRole($this->createUserInstance($data));
    }
158369
public function handle()
    {
        $this->setArguments();
        $search = $this->ask('What string would you like to search for?');
        $replace = $this->choice('Do you want to carry out a replacement or just a search?', [ 'Search only', 'Search and replace' ] );
        $replacement = false;
        if( $replace === 'Search and replace' ) {
            $replacement = $this->ask( "What would you like to replace '{$search}' with?" );
        }
        if( $replacement ) {
            $this->searchAndReplace( $search, $replacement );
        } else {
            $this->searchOccurrences( $search );
        }
    }
76345
public function handle()
    {
        $this->abortCommandExecution();

        $this->groups = $this->option('group') ? $this->argument('group') : $this->askForGroups();
        $this->assignGroupsToAssignment();
    }
59415
public function handle()
    {
        $data = [
            'value'      => $this->argument('ip'),
            'enabled'    => !$this->option('disabled'),
            'trusted'    => $this->option('trusted'),
            'reason'     => $this->option('reason'),
            'expired_at' => $this->option('expire'),
        ];

        $this->rulesProcessor->store($this, $data, $this->option('canBanSelf'));
    }
5737
public function handle()
    {
        $this->processOptions();
        $this->checkIfSpatieMenuAlreadyInstalled();
        $this->installSpatieMenu();
        $this->publishSpatieMenu();
        $this->publishSpatieMenuConfig();
    }
968102
public function handle()
    {
        $firstName = $this->ask('First Name');
        $lastName = $this->ask('Last Name');
        $email = $this->ask('Email');

        // Check the email to see if its already being used
        if ($admin = BkwldAdmin::where('email', $email)->exists()) {
            $this->error('That email is already in use');

            return;
        }

        $password = $this->secret('Enter your password');
        $confirm = $this->secret('Confirm your password');

        // password matching check
        if ($password != $confirm) {
            $this->error('Your passwords do not match.');

            return;
        }

        // Create a new admin
        $admin = new BkwldAdmin;
        $admin->first_name = $firstName;
        $admin->last_name = $lastName;
        $admin->email = $email;
        $admin->password = $password;

        // Save out the new admin
        $admin->save();
        $this->info('Admin created!');
    }
293978
public function handle()
    {
        if ($this->option('all')) {
            $this->publishCommonViews();
            $this->publishAPIRoutes();
            $this->initAPIRoutes();
            $this->publishTemplates();
            $this->publishAppBaseController();
        } elseif ($this->option('templates')) {
            $this->publishTemplates();
        } elseif ($this->option('baseController')) {
            $this->publishAppBaseController();
        } else {
            $this->publishCommonViews();
            $this->publishAPIRoutes();
            $this->initAPIRoutes();
        }
    }
460577
public function handle()
    {
        $action = $this->getActionArgument(['add', 'update', 'delete']);

        foreach ($this->getCurrencyArgument() as $currency) {
            $this->$action(strtoupper($currency));
        }
    }
1081636
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();


        } else {

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

        }

        $this->clearFilePaths();

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

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

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

        $this->setViewPaths();


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

        if ( $this->removeViewFolder($path) && $this->deleteFiles() ) {

            $this->sendViewsSuccessMessage();

            return;

        }

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


    }
1309018
public function handle()
    {
        $name = $this->argument('name');
        $path = $this->getPath($name);

        $this->makeDirectory($path);

        if (file_exists($path)) {
            if ($this->confirm('View already exists. Do you wish to overwrite it?')) {
                $this->createView($path);
            }
        } else {
            $this->createView($path);
        }     
    }
576974
public function handle()
    {
        // Retrieve attributes
        $attributes = config('commands.user_attributes');

        // Retrieve sensitive fields
        $sensitive_attributes = config('commands.user_attributes_sensitive');

        // Ask questions and prepare data
        foreach ($attributes as $attribute => $question) {
            if (is_null($attribute) || $attribute === 0) {
                $attribute = $question;
            }

            // Check if sensitive field
            if (in_array($attribute, $sensitive_attributes)) {
                $attributes[$attribute] = Hash::make($this->secret($question));
                continue;
            }

            $attributes[$attribute] = $this->ask($question);
        }

        // Create new user
        try {
            $user = App::make(config('commands.user'));
            $user::create($attributes);
            $this->info('User created');
        } catch (\Exception $exception) {
            $this->error($exception->getMessage());
        }
    }
245499
public function handle()
    {
        $this->install();

        $command = trim($this->option('command'));
        if (empty($command) === true) {
            $command = 'help';
        }

        $input = new StringInput($command);
        $output = $this->getOutput();
        $application = new \Composer\Console\Application();
        $application->setAutoExit(false);
        $application->run($input, $output);
    }