Schema::create('table_name', function (Blueprint $table) { $table->increments('id'); $table->string('name'); // ... more fields }); DB::statement("ALTER TABLE table_name AUTO_INCREMENT = 'E300';"); } code example
Example: laravel add auto increment
Schema::table('item_tag', function (Blueprint $table) {
$table->increments('id')->first();
});