Here we will discuss Laravel char type column migration. how to make char type migration.
Laravel char type migration
Laravel migration char() method create mysql CHAR type column. we can define this column length by passing in second argument
public function up() { Schema::create('users', function (Blueprint $table) { $table->char('name'); $table->char('username', 50); }); }
Read Also : Migration for set enum value as null