How to make mysql boolean datatype in laravel migration

How to create laravel boolean type migration. what is use of boolean type column.

Laravel boolean type column

Laravel migration boolean() method create a tinyint type column which length is 1. In boolean column consider 0 value as false and nonzero as true.

public function up()
{
    Schema::create('users', function (Blueprint $table) {
        $table->boolean('is_admin');
    });
}
php laravel developer anmol sharma

Anmol Sharma

I am a software engineer and have experience in web development technologies like php, Laravel, Codeigniter, javascript, jquery, bootstrap and I like to share my deep knowledge by these blogs.

Random tutorial links