id(); $table->string('code')->unique(); $table->string('name'); $table->enum('type', ['Asset', 'Liability', 'Equity', 'Revenue', 'Expense']); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('accounts'); } };