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: 
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,
remove the table from the database ( I did it manually the first time I had this issue)

and make this change in the create\_users\_table migration as such

```
$table->string('email', 60)->unique();

```

and this worked for me..

Hope this helps you as well