Execute the console command.

@return mixed
177999
public function handle()
    {
        $routeCollection = $this->router->getRoutes();
        $verb = $this->option('method') == 'null' ? null : strtoupper($this->option('method'));

        if ($routeCollection) {
            foreach ($routeCollection as $route) {
                if (! $verb || in_array($verb, $route->getMethods())) {
                    $info = $route->getPath();
                    if ($this->option('showMethods')) {
                        $info .= ' [' . implode(', ', $route->getMethods()) . ']';
                    }
                    $this->info($info);
                }
            }
        }
    }
582614
public function handle()
    {
        $app = app();
        $this->version = (int) str_replace('.', '', $app->version());

        // check if module exists
        if ($this->files->exists(app_path().'/Modules/'.studly_case($this->getNameInput()))) {
            return $this->error($this->type.' already exists!');
        }

        // Create Controller
        $this->generate('controller');

        // Create Model
        $this->generate('model');

        // Create Views folder
        $this->generate('view');

        //Flag for no translation
        if (! $this->option('no-translation')) { // Create Translations folder
            $this->generate('translation');
        }

        if ($this->version < 530) {

            // Create Routes file
            $this->generate('routes');
        } else {

            // Create WEB Routes file
            $this->generate('web');
            
            // Create API Routes file
            $this->generate('api');
        }
        
        // Create Helper file
        $this->generate('helper');



        if (! $this->option('no-migration')) {

            // without hacky studly_case function
            // foo-bar results in foo-bar and not in foo_bar
            $table = str_plural(snake_case(studly_case($this->getNameInput())));
            $this->call('make:migration', ['name' => "create_{$table}_table", '--create' => $table]);
        }

        $this->info($this->type.' created successfully.');
    }
663244
public function handle()
    {
        $table = $this->laravel['config']['queue.connections.database.table'];

        $this->replaceMigration(
            $this->createBaseMigration($table), $table, Str::studly($table)
        );

        $this->info('Migration created successfully!');

        $this->composer->dumpAutoloads();
    }
555247
public function handle()
	{
		$tags = array_filter( explode( ',', $this->option( 'tags' ) ) );

		$cache = $this->cache->store( $store = $this->argument( 'store' ) );

		$this->laravel['events']->fire( 'cache:clearing', [$store, $tags] );

		if ( !empty( $tags ) )
		{
			$cache->tags( $tags )->flush();
		}
		else
		{
			$cache->flush();
		}

		$this->info( 'Cache cleared successfully.' );

		$this->laravel['events']->fire( 'cache:cleared', [$store, $tags] );
	}
316506
public function handle()
    {
        $rootDirectory = $this->argument('directory') ?? '';

        if( $rootDirectory == '' ) {

            $files = $this->getConfigFiles();

            foreach ( $files as $file )
                $this->generateRoutes(realpath(implode('/', array_slice(explode('/', $file), 0, -3))) . '/');
        } else
            $this->generateRoutes($rootDirectory);
    }
110632
public function handle()
    {
    	if ($this->confirm('Do you want to install it?', false)) {
            Artisan::call('vendor:publish',['--tag' => 'admin_migrations']);
	    	Artisan::call('vendor:publish',['--tag' => 'admin_seeds']);
	    	Artisan::call('vendor:publish',['--tag' => 'admin_public']);
	    	Artisan::call('vendor:publish',['--tag' => 'admin_views']);
	    	exec('composer dump-autoload');
	    	Artisan::call('migrate');
	    	Artisan::call('db:seed',['--class' => 'UsersTableSeeder']);

	    	$this->displayOutput();
        }
    	

    }
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');
        }
    }
985381
public function handle()
    {
        $name = $this->parseNameForDirectory($this->argument('name'));

        $headers = $this->generatePluginHeaders($name);

        $this->installPlugin($name);
        $this->setPluginHeaders($name, $headers);
        $this->setPluginRootFile($name);
        $this->setConfigurationFile($name, $headers);
        $this->setTranslationFile($name, $headers);
        $this->setProviders($name, $headers);

        $this->info('Plugin installed successfully.');
    }
178863
public static function handle()
	{
		$args = func_get_args();
		$key = array_shift( $args );
		
		return call_user_func_array( array( static::$builder, 'build_'.$key ), $args );
	}
1213733
public function handle()
    {
        $basePath = $this->getMigrationPath();
        $migrations = $this->migrator->getMigrationFiles($basePath, false);
        $count = count($migrations);

        if ($count == 0) {
            $this->comment('No migrations to move');

            return;
        }

        foreach ($migrations as $migration_name => $migration_path) {
            $datePath = $this->migrator->getDateFolderStructure($migration_name);

            // Create folder if it does not already exist
            if (! $this->files->exists($basePath.'/'.$datePath)) {
                $this->files->makeDirectory($basePath.'/'.$datePath, 0775, true);
            }

            // Move the migration into its new folder
            $this->files->move($basePath.'/'.$migration_name.'.php', $basePath.'/'.$datePath.$migration_name.'.php');
        }

        $this->info('Migrations organised successfully ('.$count.' migrations moved)');
    }
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);
    }
1145887
public function handle()
    {
        $config = $this->container['config'];

        // Get the Language codes.
        $languages = array_keys(
            $config->get('languages', array())
        );

        if ($this->option('path')) {
            $path = $this->option('path');

            if (! $this->files->isDirectory($path)) {
                return $this->error('Not a directory: "' .$path .'"');
            } else if (! $this->files->isDirectory($path .DS .'Language')) {
                return $this->error('Not a translatable path: "' .$path .'"');
            }

            return $this->updateLanguageFiles($path, $languages);
        }

        // Was not specified a custom directory.
        else {
            $paths = $this->scanWorkPaths($config);
        }

        // Update the Language files in the available Domains.
        foreach ($paths as $path) {
            if (! $this->files->isDirectory($path)) {
                continue;
            } else if (! $this->files->isDirectory($path .DS .'Language')) {
                $this->comment('Not a translatable path: "' .$path .'"');

                continue;
            }

            $this->updateLanguageFiles($path, $languages);
        }
    }
236846
public function handle()
    {
        $this->basePath = $this->getMigrationPath();
        $migrations = $this->migrator->getMigrationFiles($this->basePath);
        $count = count($migrations);

        if ($count == 0) {
            $this->comment('No migrations to move');

            return;
        }

        foreach ($migrations as $migration_name => $migration_path) {
            $datePath = $this->migrator->getDateFolderStructure($migration_name);
            // Move the migration into base migration folder
            $this->files->move($this->basePath.'/'.$datePath.$migration_name.'.php', $this->basePath.'/'.$migration_name.'.php');
        }

        $this->info('Migrations disorganised successfully ('.$count.' migrations moved)');
        $this->cleanup();
    }
1094188
public function handle()
	{
		$this->mcustom($this->__directives);
		$this->mextend($this->__directory, $this->__extension);
		$this->mif();
		$this->mforeach();
		$this->mfor();
		$this->mswitch();
		$this->mwhile();
		$this->mecho();
		$this->msection();
		$this->mcode();
		$this->mcomment();
		return $this->__cached;
	}
510608
public function handle()
    {
        $generator = FileGenerator::make($this->getRootDirectory(), $this->getStubDirectory());

        if ($this->generate($generator) === false) {
            return false;
        }

        $this->info($this->type.' created successfully.');
    }
940513
public function handle()
    {
        $targetName = $this->getTargetName();
        $name       = $this->parseName($targetName);

        return $this->generate($name, $this->getAdditionalData());
    }
872642
public function handle() {
        \File::copy(__DIR__ . '/../environment/config/filesystems.php', base_path('config/filesystems.php'));
        \Config::set('filesystems.default', 'it');

        $plugin = $this->argument('plugin');
        if (in_array($plugin, $this->plugins)) {
            if ($plugin == 'merge') {
                $this->info('It' . $this->beer . ' preparing file system merge');
                $this->merge();
            } else if ($plugin == 'laravelcollective') {
                $this->laravelcollective();
            } else if ($plugin == 'yajra') {
                $this->yajra();
            } else if ($plugin == 'intervention') {
                $this->intervention();
            }
        } else {
            $plugg = [];

            $this->error('It' . $this->beer . ' Whoops please choose - plugin from list');
            $headers = [
                'Command (php artisan it:install)',
                '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 (MVC-SD) Created By Mahmoud Ibrahim v1';
                } elseif ($plug == 'laravelcollective') {
                    $title = 'Install Laravel Collective Package (laravelcollective.com) ';
                } elseif ($plug == 'yajra') {
                    $title = 'Install yajra datatable Package (yajrabox.com) ';
                } elseif ($plug == 'intervention') {
                    $title = 'Install intervention Image Package (image.intervention.io) ';
                }
                array_push($plugg, [$plug, $title]);
            }
            $this->table($headers, $plugg);
        }
    }