Execute the console command.

@return void

@throws \RuntimeException
772412
public function handle()
    {
        $path = $this->laravel['config']['view.compiled'];

        if (! $path) {
            throw new RuntimeException('View path not found.');
        }

        foreach ($this->files->glob("{$path}/*") as $view) {
            $this->files->delete($view);
        }

        $this->info('Compiled views cleared!');
    }
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();
        }
    }
1188790
public function handle()
    {
        if (ServiceProvider::ideHelperIsInstalled() && ServiceProvider::ideHelperIsAvailable()) {
            try {
                $this->call('ide-helper:generate', []);
            } catch (Exception $e) {
                $this->error($e->getMessage());
            }

            try {
                $this->call('ide-helper:meta', [
                    '--filename' => sprintf(
                        '%s.%s',
                        config('ide-helper.meta_filename', ServiceProvider::META_FILENAME),
                        config('ide-helper.format', ServiceProvider::FILES_FORMAT)
                    ),
                ]);
            } catch (Exception $e) {
                $this->error($e->getMessage());
            }

            try {
                $this->call('ide-helper:models', [
                    '--nowrite'  => true,
                    '--reset'    => true,
                    '--filename' => sprintf(
                        '%s.%s',
                        config('ide-helper.models_filename', ServiceProvider::MODELS_FILENAME),
                        config('ide-helper.format', ServiceProvider::FILES_FORMAT)
                    ),
                ]);
            } catch (Exception $e) {
                $this->error($e->getMessage());
            }
        } else {
            $this->warn('IDE Helper is not ready for running. Skip.');
        }
    }
231989
public function fire()
    {
        $path = $this->container['config']['view.compiled'];

        if (!$path) {
            throw new RuntimeException('View path not found.');
        }

        foreach (glob("{$path}/*") as $view) {
            unlink($view);
        }

        $this->info('Compiled views cleared!');
    }
1124297
public function handle()
    {
        $name = $this->argument('name');
        //
        $process = Events::create($name);
        //
        $this->show($process, $name);
    }
1277672
public function handle()
    {
        $roleName = $this->argument('name');
        $userId = $this->option('user');

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

        if ($userId) {
            $this->attachRoleToUser($role, $userId);
        }
    }
838478
public function handle()
    {

        // $this->info($this->option('language'));

        $locales = Config::get('app.locales');

        if($this->option('file') != null)
        {
            $file = base_path('resources/lang/en/'.$this->option('file'));

            foreach ($locales as $localeKey => $value) 
            {
                if($localeKey != 'en')
                {
                   $this->translate($localeKey,$file);
                }
            }   
        }
        else
        {
            $files = File::allFiles(base_path('resources/lang/en'));
            foreach ($files as $file)
            {   
                if($this->option('language') != null)
                {
                    $this->translate($this->option('language'),$file);
                }
                else
                {
                    foreach ($locales as $localeKey => $value) 
                    {
                        if($localeKey != 'en')
                        {
                           $this->translate($localeKey,$file);
                        }
                    
                    }    
                }
            }
        }
        
    }
1681
public function handle()
    {
        $events = $this->schedule->dueEvents($this->container);

        foreach ($events as $event) {
            $this->line('<info>Running scheduled command:</info> ' .$event->getSummaryForDisplay());

            $event->run($this->container);
        }

        if (count($events) === 0) {
            $this->info('No scheduled commands are ready to run.');
        }
    }
477902
public function handle()
	{
		$namespace = $this->argument('namespace');

		$templateHelper = new TemplatesHelper();
		$templateData = $templateHelper->getTemplate('AppBaseController', 'Controller');

		$templateData = str_replace('$$BASE_NAMESPACE$$', $namespace, $templateData);

		$fileName = "AppBaseController.php";

		$filePath = __DIR__ . "/../../Controller/";

		$fileHelper = new FileHelper();
		$fileHelper->writeFile($filePath . $fileName, $templateData);
		$this->comment('AppBaseController generated');
		$this->info($fileName);
	}
1274894
public function handle()
    {
        $this->abortCommandExecution();
        $file = $this->argument('file');
        $this->runScp(base_path($file), $this->domain, null, true);
    }
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));
        }
    }
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}");
    }
992955
public function handle()
    {
        $bladePath = $this->laravel['config']['view.compiled'];
        $twigPath = $this->laravel['config']['view.twig'];

        if (! $bladePath || ! $twigPath) {
            throw new \RuntimeException('View cache path not found.');
        }

        foreach ($this->files->glob("{$bladePath}/*.php") as $view) {
            $this->files->delete($view);
        }

        $this->files->deleteDirectories($twigPath);

        $this->info('Compiled views cleared.');
    }
1025173
public function handle()
    {
        $this->displayIntro();

        if (
            App::hasDatabase() &&
            !$this->confirm('Application appears to be installed already. Continue anyway?', false)
        ) {
            return;
        }

        $this->setupDatabaseConfig();
        $this->setupAdminUser();
        $this->setupCommonValues();

        if ($this->confirm('Configure advanced options?', false)) {
            $this->setupEncryptionKey();
            $this->setupAdvancedValues();
            $this->askToInstallPlugins();
        }
        else {
            $this->setupEncryptionKey(true);
        }

        $this->setupMigrateDatabase();
        $this->displayOutro();
    }
39098
public function handle()
    {
        $this->singular = $this->argument( 'resource' );
        $this->plural = str_plural( $this->singular );
        $this->time = time();
        $this->createModel();
        $this->createBlueprint();
        $this->createContract();
        $this->createController();
        $this->createRoutesStub();
        $this->createViews();
        $this->createPermissionMigrations();
        $this->registerBindings();
        $this->runExport();
        $this->runImport();
        $this->runExport();
    }
1188441
public function handle()
    {
        $id = $this->argument('id');

        if ($id === null) {
            $this->table(
                ['ID', 'Email'],
                User::all(['id', 'email'])->toArray()
            );
            $id = $this->ask('ID?');
        }

        User::where('id', $id)->update([
            'password' => bcrypt($this->secret('New password?'))
        ]);

        $this->info('User was updated');
    }
1288968
public function handle(): void
    {
        $this->initCommands();

        foreach ($this->calls as $info) {
            if (! isset($info['command'])) {
                continue;
            }

            $params = (isset($info['params'])) ? $info['params'] : [];

            $this->line(PHP_EOL.$info['description']);

            switch ($info['type']) {
                case 'artisan':
                    $this->call($info['command'], $params);
                    break;
                case 'cli':
                    $process = new Process($info['command']);
                    $process->run();
                    break;
            }
        }
    }