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'); }); }
Read Also : Migration for set enum value as null