id(); $table->string('nama_barang')->collation('utf8mb4_unicode_ci')->unique(); $table->integer('qty')->nullable(); $table->date('exp')->nullable(); $table->integer('harga'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('barang'); } };