src/commands/MigrationCommand.php
public function fire()
    {

        $this->laravel->view->addNamespace('verifier', substr(__DIR__, 0, -8).'views');

        $tables = Config::get('verifier.tables');

        $this->line('');
        $this->info( 'Tables: '. implode(',', $tables) );

        $msg = 'A migration that adds Verifier columns to '. implode(',', $tables) .' will be created in '.
            'database/migrations directory';

        $this->comment($msg);
        $this->line('');

        if ($this->confirm("Proceed with the migration creation? [Yes|no]", "Yes")) {

            $this->line('');
            $this->info("Creating migration...");

            if ($this->createMigration($tables)) {

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

            } else {

                $this->error(
                    "Couldn't create migration.\n Check the write permissions".
                    " within the database/migrations directory."
                );

            }

            $this->line('');
        }
    }
public function fire()
    {

        $this->laravel->view->addNamespace('verifier', substr(__DIR__, 0, -8).'views');

        $tables = Config::get('verifier.tables');

        $this->line('');
        $this->info( 'Tables: '. implode(',', $tables) );

        $msg = 'A migration that adds Verifier columns to '. implode(',', $tables) .' will be created in '.
            'database/migrations directory';

        $this->comment($msg);
        $this->line('');

        if ($this->confirm("Proceed with the migration creation? [Yes|no]", "Yes")) {

            $this->line('');
            $this->info("Creating migration...");

            if ($this->createMigration($tables)) {

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

            } else {

                $this->error(
                    "Couldn't create migration.\n Check the write permissions".
                    " within the database/migrations directory."
                );

            }

            $this->line('');
        }
    }
public function fire ( ) { $ this -> laravel -> view -> addNamespace ( 'verifier' , substr ( __DIR__ , 0 , - 8 ) . 'views' ) ; $ tables = Config :: get ( 'verifier.tables' ) ; $ this -> line ( '' ) ; $ this -> info ( 'Tables: ' . implode ( ',' , $ tables ) ) ; $ msg = 'A migration that adds Verifier columns to ' . implode ( ',' , $ tables ) . ' will be created in ' . 'database/migrations directory' ; $ this -> comment ( $ msg ) ; $ this -> line ( '' ) ; if ( $ this -> confirm ( "Proceed with the migration creation? [Yes|no]" , "Yes" ) ) { $ this -> line ( '' ) ; $ this -> info ( "Creating migration..." ) ; if ( $ this -> createMigration ( $ tables ) ) { $ this -> info ( "Migration successfully created!" ) ; } else { $ this -> error ( "Couldn't create migration.\n Check the write permissions" . " within the database/migrations directory." ) ; } $ this -> line ( '' ) ; } }
Execute the console command.

@return void
Execute the console command .