Here we will discuss Laravel integer type column migration. how to make integer type migration.
Laravel integer data type migration
Laravel migration integer() method create mysql INTEGER type column. Integer type column only store integer values.
public function up() { Schema::create('users', function (Blueprint $table) { $table->integer('visitors'); }); }
Read Also : Migration for set enum value as null