src/commands/MigrationCommand.php
public function fire()
    {
        $this->line('');
        $this->info('Welcome to package ferdirn/laravel-id-countries');
        $this->line('');
        $this->info('The migration file will create a table countries and a seeder for the countries data');

        $this->line('');

        if ( $this->confirm("Create migration file? [Yes|no]") )
        {
            $this->line('');

            $this->info( "Creating migration and seed file..." );
            if( $this->createMigration( 'countries' ) )
            {
                $this->line('');

                $this->call('dump-autoload', array());

                $this->line('');

                $this->info( "Migration successfully created!" );
            }
            else{
                $this->error(
                    "Error! Failed to create migration.\n Check the write permissions".
                    " within the app/database/migrations directory."
                );
            }

            $this->line('');
        }
    }
public function fire()
    {
        $this->line('');
        $this->info('Welcome to package ferdirn/laravel-id-countries');
        $this->line('');
        $this->info('The migration file will create a table countries and a seeder for the countries data');

        $this->line('');

        if ( $this->confirm("Create migration file? [Yes|no]") )
        {
            $this->line('');

            $this->info( "Creating migration and seed file..." );
            if( $this->createMigration( 'countries' ) )
            {
                $this->line('');

                $this->call('dump-autoload', array());

                $this->line('');

                $this->info( "Migration successfully created!" );
            }
            else{
                $this->error(
                    "Error! Failed to create migration.\n Check the write permissions".
                    " within the app/database/migrations directory."
                );
            }

            $this->line('');
        }
    }
Execute the console command.

@return void