Execute the job.

@return void
558240
public function handle()
    {
        $end_time = round((microtime(true) - $this->created)*1000);

        try {
            Cache::forget('eyewitness_q_sonar_deployed_'.$this->queue_id);
            Cache::put('eyewitness_q_current_wait_time_'.$this->queue_id, $end_time, 180);
            Cache::add('eyewitness_q_sonar_time_'.$this->queue_id, 0, 180);
            Cache::increment('eyewitness_q_sonar_time_'.$this->queue_id, $end_time);
            Cache::add('eyewitness_q_sonar_count_'.$this->queue_id, 0, 180);
            Cache::increment('eyewitness_q_sonar_count_'.$this->queue_id);
        } catch (Exception $e) {
            app(Eye::class)->logger()->error('Error during Sonar Handling',
                                             $e->getMessage(),
                                             ['queue_id' => $this->queue_id,
                                              'end_time' => $end_time,
                                              'created_time' => $this->created]);
        }

        $queue = Queue::find($this->queue_id);
        $queue->current_wait_time = round($end_time/1000, 2);
        $queue->save();
    }
630812
public function handle()
    {
        try {
            $role = App::make(config('commands.role'));

            $role::create([
                'name' => $this->ask('Name?')
            ]);
            $this->info('Role created');
        } catch (\Exception $exception) {
            $this->error($exception->getMessage());
        }
    }
737945
public function handle()
    {

        // Ask what command
        $command = $this->choice('What command are you running?', $this->availableCommands->toArray());

        if (!$this->availableCommands->has($command)) {
            $this->info('The specified command does not exist.');
            return;
        }

        $method = 'make' . ucfirst($command);
        call_user_func([$this, $method]);

        $this->call('make:'. $command, $this->options);
    }
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 );
        }
    }
1169451
public function handle()
    {
        if (parent::handle() === false && ! $this->option('force')) {
            return;
        }

        if ($this->option('all')) {
            $this->input->setOption('controller', true);
            $this->input->setOption('factory', true);
            $this->input->setOption('migration', true);
            $this->input->setOption('resource', true);
        }

        if ($this->option('factory')) {
            $this->createFactory();
        }

        if ($this->option('migration')) {
            $this->createMigration();
        }

        if ($this->option('controller') || $this->option('resource')) {
            $this->createController();
        }
    }
1277672
public function handle()
    {
        $roleName = $this->argument('name');
        $userId = $this->option('user');

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

        if ($userId) {
            $this->attachRoleToUser($role, $userId);
        }
    }
460695
public function handle()
    {
        $this->getApplication()->setCatchExceptions(false);

        $config = new Configuration([
            'updateCheck' => 'never',
        ]);

        $config->getPresenter()->addCasters(
            $this->getCasters()
        );

        $shell = new Shell($config);
        $shell->addCommands($this->getCommands());
        $shell->setIncludes($this->argument('include'));

        $path = $this->getLaravel()->basePath().DIRECTORY_SEPARATOR.'vendor/composer/autoload_classmap.php';

        $loader = ClassAliasAutoloader::register($shell, $path);

        try {
            $shell->run();
        } finally {
            $loader->unregister();
        }
    }
725688
public function handle()
    {
        $this->call('passport:keys', ['--force' => $this->option('force'), '--length' => $this->option('length')]);
        $this->call('passport:client', ['--personal' => true, '--name' => config('app.name').' Personal Access Client']);
        $this->call('passport:client', ['--password' => true, '--name' => config('app.name').' Password Grant Client']);
    }
274449
public function handle()
    {
        if (! $this->confirmToProceed()) {
            return;
        }

        $driver = $this->getDriver();
        $database = $this->option('database');
        $id = $this->option('id');
        $pretend = $this->option('pretend', false);

        $this->prepareDatabase($driver, $database, $id);

        $migrator = $this->tenant->driver($driver);

        $this->setupMigrationOutput($migrator);

        $migrator->run($database, $id, $pretend);
    }
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')]
        );
    }
913390
public function handle()
    {
        $server = $this->laravel->make('server');

        $this->line("{$this->laravel->name()} server is starting...");

        $this->processRuntime($server);

        $server->start();
    }
757931
public function handle()
    {
        $name = $this->argument('module');

        if ($name) {
            $this->updateModule($name);

            return;
        }

        /** @var \Nwidart\Modules\Module $module */
        foreach ($this->laravel['modules']->getOrdered() as $module) {
            $this->updateModule($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);
    }
217704
public function handle()
    {
        $table = $this->container['config']['queue.connections.database.table'];

        $tableClassName = Str::studly($table);

        $fullPath = $this->createBaseMigration($table);

        $stubPath = __DIR__ .DS . 'stubs' .DS .'jobs.stub';

        $stub = str_replace(
            ['{{table}}', '{{tableClassName}}'], [$table, $tableClassName], $this->files->get($stubPath)
        );

        $this->files->put($fullPath, $stub);

        $this->info('Migration created successfully!');
    }
1040327
public function handle()
    {

        $this->setConfig();

        $this->checkRequirements();

        if ( $this->InsertChartIntoFiles() ) {

            $this->sendSuccessMessage();

            return;

        }

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


    }
1244023
public function handle()
    {

        if (! $this->preflighted()) return;

        $this->entity_ids = collect();

        $this->entity_ids->push(CharacterWalletJournal::select('first_party_id')
            ->whereNotIn('first_party_id', UniverseName::select('entity_id')->distinct()->get())
            ->whereNotNull('first_party_id')
            ->distinct()
            ->get()
            ->pluck('first_party_id')
            ->toArray());

        $this->entity_ids->push(CharacterWalletJournal::select('second_party_id')
            ->whereNotIn('second_party_id', UniverseName::select('entity_id')->distinct()->get())
            ->whereNotNull('second_party_id')
            ->distinct()
            ->get()
            ->pluck('second_party_id')
            ->toArray());

        $this->entity_ids->flatten()->chunk($this->items_id_limit)->each(function ($chunk) {

            $this->request_body = collect($chunk->values()->all())->unique()->values()->all();

            $resolutions = $this->retrieve();

            collect($resolutions)->each(function ($resolution) {

                UniverseName::firstOrNew([
                    'entity_id' => $resolution->id,
                ])->fill([
                    'name'     => $resolution->name,
                    'category' => $resolution->category,
                ])->save();

            });

        });
    }
407121
public function handle()
    {
        $translationFiles = $this->manager->files();

        $this->syncKeysFromFiles($translationFiles);

        $this->syncKeysBetweenLanguages($translationFiles);

        $this->info('Done!');
    }