string('id')->primary(); $table->string('email'); $table->string('password_hash'); }); $qb = DB::table('admins'); $qb->insert([ 'id' => uniqid('admin_'), 'email' => 'mail@mail.com', 'password_hash' => Hash::make('password'), ]); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('admins'); } };