Question: I want to create android app about an article that contains 30 chapters so i am to make 30 buttons every button will contain different text stories so please tell me how can i show these 30 buttons in list view instead of showing in normal linear layout of vertical orientation please help me out?

Answer: 
You need to run

```
php artisan migrate:rollback

```

if that also fails just go in and drop all the tables which you may have to do as it seems your migration table is messed up or your roles table when you ran a previous rollback did not drop the table. 

or you can use `migrate:reset` command will roll back all of your application's migrations:

```
php artisan migrate:reset

```
I had the same issue and I tried something like this and it works perfect for me. My Laravel version is 5.5.

```
public function up()
{
    Schema::connection('mysql2')->create('images', function (Blueprint $table) {
        $table->increments('id');             
        $table->string('name');                      
        $table->string('image');            
        $table->timestamps();
    });
}

public function down()
{
    Schema::connection('mysql2')->dropIfExists('images');
}

```

I had to connections in my project one is **mysql** and other is **mysql2** becuase my project is for database with multiple connections.

So my solution is that to try specifying the connection to your database in the function.

By default connection is **mysql** if you havent specifed it in the function, Example is given below. Hope this helps!

```
public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->increments('id');                
            $table->string('name');
            $table->string('email',60)->unique();
            $table->string('password');                
            $table->rememberToken();
            $table->timestamps();
        });
    }

    public function down()
    {
        Schema::dropIfExists('users');
    }

```

And so when you migrate using php artisan it doesn't show errors,