Execute the console command.
423344
public function fire()
    {
        $path = str_replace('\\', '/', $this->getDestinationFilePath());

        if (!$this->laravel['files']->isDirectory($dir = dirname($path))) {
            $this->laravel['files']->makeDirectory($dir, 0777, true);
        }

        $contents = $this->getTemplateContents();

        try {
            with(new FileGenerator($path, $contents))->generate();

            $this->info("Created : {$path}");
        } catch (FileAlreadyExistException $e) {
            $this->error("File : {$path} already exists.");
        }
    }
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;
    }
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')]
        );
    }
484267
public function handle()
    {
        $boolData = $this->option('data');
        $this->call('migrate', [
            '--force' => true
        ]);
        $this->call('db:seed');
        $seedListsClass = [
            'CommonConfig', 'CommonRole', 'ManageMenu', 'CommonRoleUri'
        ];
        if($seedListsClass) {
            foreach ($seedListsClass as $class) {
                $this->call('db:seed', [
                    '--class' => $class . 'TableSeeder'
                ]);
            }
        }
        //Set up test data in the database
        if (!empty($boolData))
        {
            $seedListClass = [
                //'Article'
            ];
            if($seedListClass) {
                foreach ($seedListClass as $class) {
                    $this->call('db:seed', [
                        '--class' => $class . 'TableSeeder'
                    ]);
                }
            }
        }
    }
558
public function handle()
    {
        $indexConfigurator = $this->getIndexConfigurator();

        if ($indexConfigurator && ! $this->alreadyExists($indexConfigurator)) {
            $this->call('make:index-configurator', [
                'name' => $indexConfigurator,
            ]);
        }

        $searchRule = $this->getSearchRule();

        if ($searchRule && ! $this->alreadyExists($searchRule)) {
            $this->call('make:search-rule', [
                'name' => $searchRule,
            ]);
        }

        parent::handle();
    }
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;
        }
    }
61356
public function handle()
    {
        $this->line('=== Rename public directory to "public_html" ===');

        if (! \File::exists(base_path('public_html/index.php'))) {
            \File::copyDirectory(base_path('public'), base_path('public_html'));
            \File::deleteDirectory(base_path('public'));
            $dir = str_replace('/Commands', '', __DIR__);
            \File::copy($dir.'/../configVendor/larrock-index-public_html_php', base_path('public_html/index.php'));
            $this->info('Directory and index.php successfully updated');
        } else {
            $this->info('The command is not required, the directory has already changed.');
        }
    }
1044170
public function handle()
    {
        $services = $this->app->config('provider');

        if(!is_null($services)) {
            $published = false;

            foreach($services as $service) {
                $publishableItems = $this->app->make($service)->publish();

                if($this->publishItems($publishableItems)) {
                    $published = true;
                }
            }

            if($published) {
                $this->info("Package assets has been published.");
            } else {
                $this->info("Package assets already published.");
            }
        }
    }
1027590
public function handle()
    {
        $path = $this->argument('path');
        $text = $this->option('text');
        $root = session('cd_base_path');
        $path = trim($root, '/').'/'.$path;

        if (is_null($text) === false) {
            $this->files->put($path, $text);
        } else {
            $this->line($this->files->get($path));
        }
    }
1277672
public function handle()
    {
        $roleName = $this->argument('name');
        $userId = $this->option('user');

        $role = $this->createRole($roleName);

        if ($userId) {
            $this->attachRoleToUser($role, $userId);
        }
    }
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!');
        }
    }
627085
public function handle()
    {
        $this->line(static::$logo);
        $this->line(Admin::getLongVersion());

        $this->comment('');
        $this->comment('Available commands:');

        $this->listAdminCommands();
    }
247443
public function handle()
    {
        $username = $this->argument('username');

        if ( ! $this->getAuthenticator()->deleteUser($username)) {
            $this->error("Failed to find or delete user '{$username}'");
            return;
        }

        $this->info('User deleted.');
    }
1120339
public function handle()
    {
        $name = $this->argument('name');

        $error = $this->validateName($name);

        if ($error) {
            $this->error($error);
            return;
        }

        $key = ApiKey::where('name', $name)->first();

        if ($key->active) {
            $this->info('Key "' . $name . '" is already active');
            return;
        }

        $key->active = 1;
        $key->save();

        $this->info('Activated key: ' . $name);
    }
685981
public function handle()
    {
        if ($module = $this->argument('module')) {
            $this->publishConfiguration($module);

            return;
        }

        foreach ($this->laravel['modules']->allEnabled() as $module) {
            $this->publishConfiguration($module->getName());
        }
    }
281194
public function handle()
    {
        $params = [
            'tables'   => $this->argument('tables'),
            '--tables' => $this->option('tables'),
            '--ignore' => $this->option('ignore'),
        ];

        $this->call('generator:make:migration', $params);

        $params['--models'] = $this->option('models');

        $this->call('generator:make:scaffold', $params);

        $this->call('generator:make:factory', $params);
    }
601975
public function handle()
    {

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

        $this->slug = $this->argument('Slug');

        $this->setCrudTokens();

        $this->setFilePaths();

        if ( $this->makeCrudFiles() ) {

            $this->sendSuccessMessage();

            return;

        }

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


    }