Laravel Database Column Types

Command Description $table->bigIncrements(‘id’); Incrementing ID (primary key) using a “UNSIGNED BIG INTEGER” equivalent. $table->bigInteger(‘votes’); BIGINT equivalent for the database. $table->binary(‘data’); BLOB equivalent for the database. $table->boolean(‘confirmed’); BOOLEAN equivalent for the database. $table->char(‘name’, 4); CHAR equivalent with a length. $table->date(‘created_at’); DATE equivalent for the database. $table->dateTime(‘created_at’); DATETIME equivalent for the database. $table->dateTimeTz(‘created_at’); DATETIME (with timezone) equivalent… Continue reading Laravel Database Column Types