Execute the console command.
423969
public function handle()
    {
        $this->call('publish:repository');

        $this->call('publish:dns');

        $this->call('publish:ssh');

        if ($this->confirm('Do you want to install your project to production?')) {
            $this->call('publish:install');
        }

        if ($this->confirm('Do you want to enable Laravel Forge autodeploy?')) {
            $this->call('publish:autodeploy');
        }

        if ($this->confirm('Do you want to install a Deployment script with hooks?')) {
            $this->call('publish:deployment_script_with_hooks');
        }

        $this->info('### SSL. Lets Encrypt will only work on sites with a valid domain (no /etc/hosts/trick) ###');
        $this->info("### Skip the next step if you don't need SSL or not have a valid domain name");

        if ($this->confirm('Do you want to enable SSL on site using Lets Encrypt?')) {
            $this->call('publish:ssl');
        }

        if ($this->confirm('Do you want open your app in your default browser?')) {
            $this->call('publish:open');
        }

        $this->info("I have finished publishing you project into Laravel Forge server! Congratulations and enjoy!");
    }
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());
        }
    }
499458
public function handle() {
		\Config::set('filesystems.default', 'it');

		//$this->option('plugin');
		$plugin = $this->argument('plugin');
		if (in_array($plugin, $this->plugins)) {
			if ($plugin == 'merge') {
				$this->info('It'.$this->beer.' preparing file system merge to remove');
				$this->uninstall_merge();

			} else if ($plugin == 'laravelcollective') {
				$this->uninstall_laravelcollective();
			} else if ($plugin == 'yajra') {
				$this->yajra();
			} else if ($plugin == 'intervention') {
				$this->intervention();
			}
		} else {
			$plugg = [];

			$this->error('It'.$this->beer.' Ops Choose Plugin From List ');
			$headers = [
				'Command (php artisan it:uninstall)',
				'Description'
			];
			foreach ($this->plugins as $plug) {
				if ($plug == 'merge') {
					$title = 'A Controller File Project to merge your files';
				} elseif ($plug == 'payment') {
					$title = 'Payment Getway trusted Packages Paypal,Cashu,payfort & much more ... ';
				} elseif ($plug == 'editors') {
					$title = 'Ckeditor,NiceEdit,jWYSIWYG,summernote,react-rte & much more ...  ';
				} elseif ($plug == 'baboon') {
					$title = 'Baboon CRUD System Created By Mahmoud Ibrahim v1';
				} elseif ($plug == 'yajra') {
					$title = 'Yajra DataTables by yajrabox.com';
				} elseif ($plug == 'intervention') {
					$title = 'intervention Image Package (image.intervention.io) ';
				}
				array_push($plugg, [$plug, $title]);
			}
			$this->table($headers, $plugg);
		}
	}
241827
public function handle()
    {
        if ($this->option('all')) {
            $this->publishCommonViews();
            $this->publishTemplates();
            $this->publishBaseRepository();
        } elseif ($this->option('templates')) {
            $this->publishTemplates();
        } elseif ($this->option('baseRepository')) {
            $this->publishBaseRepository();
        } else {
            $this->publishCommonViews();
        }
    }
555802
public function handle()
    {
        $version = $this->version();

        $all = $this->option('all');

        $currentOS = OperatingSystem::id();

        foreach ($this->slugs as $os => $slug) {
            if ($all || ($os === $currentOS)) {
                $archive = $this->download($version, $slug);

                $binary = $this->extract($archive);

                $this->rename($binary, $os);
            }
        }

        $message = 'ChromeDriver %s successfully installed for version %s.';

        $this->info(sprintf($message, $all ? 'binaries' : 'binary', $version));
    }
1328179
public function handle()
    {
        $group = $this->argument('group');
        $json = $this->option('json');

        if (is_null($group) && !$json) {
            $this->warn('You must either specify a group argument or export as --json');

            return;
        }

        if (!is_null($group) && $json) {
            $this->warn('You cannot use both group argument and --json option at the same time');

            return;
        }

        $this->manager->exportTranslations($group, $json);

        if (!is_null($group)) {
            $this->info('Done writing language files for '.(($group == '*') ? 'ALL groups' : $group.' group'));
        } elseif ($json) {
            $this->info('Done writing JSON language files for translation strings');
        }
    }
592023
public function handle()
    {
        $this->parseKey();

        $this->files = $this->filesFromKey();

        try {
            $this->languages = $this->getLanguages();
        } catch (InvalidArgumentException $e) {
            $this->error($e->getMessage());

            return;
        }

        $this->table(
            array_merge(['key'], $this->languages),
            $this->tableRows()
        );
    }
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 );
        }
    }
98951
public function handle()
    {
        $this->comment('Updating the driver database...');

        if ($this->driver->update())
            $this->info('Driver database updated');
        else
            $this->error('Update failed!');
    }
1090545
public function handle()
    {
        $consoleName  = $this->input->getArgument('name');

        $consoleNamespace = $this->getNamespace('Commands', $consoleName);

        $consoleStubs = $this->filesystem->get(__DIR__.'/../stubs/MakeConsole.txt');

        $consoleStubs = str_replace([ 'dummyConsoleCommandName', 'dummyNamespace', '\\\\' ], [ basename($consoleName), $consoleNamespace, '\\' ], $consoleStubs);

        if(!file_exists($filename = app_path() ."/Console/{$consoleName}.php")) {
            $this->filesystem->create($filename, $consoleStubs);
            $this->info("{$consoleName} console command has been created successfully.");
        } else {
            $this->info("{$consoleName} console command already exists.");
        }
    }
1336296
public function handle()
    {
        $this->renameKey();

        $this->listFilesContainingOldKey();

        $this->info('The key at '.$this->argument('oldKey').' was renamed to '.$this->argument('newKey').' successfully!');
    }
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();
        }
    }
388784
public function handle()
    {
        // Load Data
        $stats   = $this->logViewer->statsTable('en');

        $rows    = $stats->rows();
        $rows[]  = $this->tableSeparator();
        $rows[]  = $this->prepareFooter($stats);

        // Display Data
        $this->displayLogViewer();
        $this->table($stats->header(), $rows);
    }
925579
public function handle()
    {
	    $name = $this->argument('name');
	    $moduleName = $this->option('module');
	    
	    
	    if(empty($moduleName))
	        $moduleName = $this->ask('Please provide the name of the module');
	    
	    $dir = 'migrations';
	    $modulePath = Module::get($moduleName)->relativePath;
	    $source = $modulePath . DIRECTORY_SEPARATOR . $dir;
	    
	    if(!is_dir(base_path($source))) {
	    	mkdir(base_path($source), 0775, true);
	    }
	    
	    
	    $this->call('make:migration', [
	    	'name' => $name,
		    '--path' => $source,
		    '--table' => $this->option('table'),
		    '--create' => $this->option('create'),
	    ]);
    }
965968
public function handle()
    {
        $this->resetCounters();

        $disk = $this->argument('disk');
        $directory = $this->option('directory') ?: '';
        $recursive = ! $this->option('non-recursive');
        $force = (bool) $this->option('force');

        $files = $this->listFiles($disk, $directory, $recursive);
        $existing_media = Media::inDirectory($disk, $directory, $recursive)->get();

        foreach ($files as $path) {
            if ($record = $this->getRecordForFile($path, $existing_media)) {
                if ($force) {
                    $this->updateRecordForFile($record, $path);
                }
            } else {
                $this->createRecordForFile($disk, $path);
            }
        }

        $this->outputCounters($force);
    }
1154966
public function handle()
    {
        $this->addon = $this->getAddon();

        if (parent::handle() !== false) {
            if ($this->option('migration')) {
                $table = $this->toTable($this->argument('name'));

                $this->call('make:migration', [
                    'name' => $this->option('migration'),
                    '--addon' => $this->option('addon'),
                    '--create' => $table,
                ]);
            }
        }
    }
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;
    }