Execute the console command.

@return void
422178
public function fire()
    {
        // Widget class name is camel case.
        $widgetClassName = ucfirst($this->getWidgetName());

        // Widget class file is camel with php extension.
        $widgetClassFile = $widgetClassName.'.php';

        // CamelCase for template.
        $widgetClassTpl = lcfirst($this->getWidgetName());

        // Get class template.
        $widgetClassTemplate = $this->getTemplate('widgetClass');

        // Directories.
        $container = $this->config->get('theme.containerDir');

        // Default create not on a global.
        $watch = 'false';

        // If not specific a theme, not a global also return an error.
        if ($this->option('global') === false and ! $this->argument('theme'))
        {
            return $this->error('Please specific a theme name or use option -g to create as a global widget.');
        }

        // Create as a global use -g.
        if ($this->option('global') === true)
        {
            $watch = 'true';
        }

        // What is type you want?
        $type = $this->option('type');

        if ( ! in_array($type, array('php', 'blade', 'twig')))
        {
            // Blade or html.
            $question = $this->ask('What type of widget template? [php|blade|twig]');

            $type = in_array($question, array('php', 'blade', 'twig')) ? $question : 'php';
        }

        $widgetNamespace = $this->config->get('theme.namespaces.widget');

        // Prepare class template.
        $widgetClassTemplate = preg_replace(
            array('|\{widgetNamespace\}|', '|\{widgetClass\}|', '|\{widgetTemplate\}|', '|\{watch\}|'),
            array($widgetNamespace, $widgetClassName, $widgetClassTpl, $watch),
            $widgetClassTemplate
        );

        // Create widget directory.
        if ( ! $this->files->isDirectory(app_path().'/Widgets'))
        {
            $this->files->makeDirectory(app_path().'/Widgets', 0777, true);
        }

        // Widget class already exists.
        if ($this->files->exists(app_path().'/Widgets/'.$widgetClassFile))
        {
            return $this->error('Widget "'.$this->getWidgetName().'" is already exists.');
        }

        // Create class file.
        $this->files->put(app_path().'/Widgets/'.$widgetClassFile, $widgetClassTemplate);

        // Make file example.
        switch ($type)
        {
            case 'blade' :
                $this->makeFile($container['widget'].'/'.$widgetClassTpl.'.blade.php', $this->getTemplate('widget.blade'));
                break;
            case 'twig' :
                $this->makeFile($container['widget'].'/'.$widgetClassTpl.'.twig.php', $this->getTemplate('widget.twig'));
                break;
            default :
                $this->makeFile($container['widget'].'/'.$widgetClassTpl.'.php', $this->getTemplate('widget'));
                break;
        }

        $this->info('Widget "'.$this->getWidgetName().'" has been created.');
    }
407121
public function handle()
    {
        $translationFiles = $this->manager->files();

        $this->syncKeysFromFiles($translationFiles);

        $this->syncKeysBetweenLanguages($translationFiles);

        $this->info('Done!');
    }
788981
public function handle()
    {
        $sql = $this->option('command');
        $connection = $this->databaseManager->connection($this->option('connection'));
        $rows = $this->castArray($connection->select($sql, [], true));
        $headers = array_keys(Arr::get($rows, 0, []));
        $this->table($headers, $rows);
    }
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!');


    }
903280
public function handle()
    {
        if (! $this->confirmToProceed()) {
            return;
        }

        $this->migrator->setConnection($this->option('database'));

        $this->migrator->setOutput($this->output)->rollback(
            $this->getMigrationPaths(), [
                'pretend' => $this->option('pretend'),
                'step' => (int) $this->option('step'),
            ]
        );
    }
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();
        }
    }
1201275
public function handle()
    {
        $this->abortCommandExecution();

        $this->info("Checking if token is valid...");

        $this->url = $this->checkTokenURL();

        if ($this->checkToken($this->token)) {
            $this->info('Token is valid!');
        } else {
            $this->error('Token not valid!');
        }
    }
237364
public function handle()
    {
        $this->line('');
        $this->info('The migration process will create a migration file and a seeder for the states list');
        
        $this->line('');

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

            $this->info("Creating migration and seeder...");
            if ($this->createMigration('states')) {
                $this->line('');
                
                $this->call('optimize', []);
                
                $this->line('');
                
                $this->info("Migration successfully created!");
            } else {
                $this->error(
                    "Coudn't create migration.\n Check the write permissions".
                    " within the app/database/migrations directory."
                );
            }

            $this->line('');
        }
    }
1143649
public function handle()
    {
        try {
            $this->filesystem->make(
                $path = resource_path('views/' . $this->viewPath()),
                $this->filesystem->get($this->getStubPath()),
                true
            );
            $this->info('File ' . $path . ' created');
        } catch (\Exception $e) {
            $this->error($e->getMessage());
        }
    }
755843
public function handle(): void
    {
        $this->dbMigrate();
        $this->populateReactionTypes();
        $this->populateReacters();
        $this->populateReactants();
        $this->populateReactions();
        $this->dbCleanup();
        $this->filesystemCleanup();
    }
966864
public function handle()
    {
        $target = $this->argument('target');
        $options = [
            'compress' => $this->option('compress'),
            'json' => $this->option('json'),
            'no-lib' => $this->option('no-lib'),
            'source' => $this->option('source'),
        ];

        if ($this->generator->generate($target, $options)) {
            $this->info("Created: {$target}");

            return;
        }

        $this->error("Could not create: {$target}");
    }
583075
public function handle()
    {
        $model = trim($this->argument('model'));

        $this->writeMapping($model);

        $this->composer->dumpAutoloads();
    }
1207885
public function handle()
    {
        $this->line('Processing...');

        //get command arguments
        $message = $this->argument('message');
        $to      = $this->argument('to');
        $attach  = $this->argument('attach');

        //init client
        $this->initClient();

        //attach data
        $this->addAttachment($attach);

        //add to
        $this->addTo($to);

        //send
        $this->send($message);

        $this->info('Message sent');
    }
1040327
public function handle()
    {

        $this->setConfig();

        $this->checkRequirements();

        if ( $this->InsertChartIntoFiles() ) {

            $this->sendSuccessMessage();

            return;

        }

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


    }
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');


    }
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();
        }
    }
1284345
public function handle()
    {
        if (!$this->arguments()->requiredOptions(['name', 'age'])) {
            $this->writeln('The --name and --age options are mandatory!')->exitWithError();
        }
        $this->name = $this->arguments()->options()->get('name');
        $this->age = $this->arguments()->options()->get('age');
        $this->writeln(sprintf('Hello %s, thanks for confirming your age as %s years old!', $this->name, $this->age))->exitWithSuccess();
    }