2025_11_04_101429_insert_config.php 765 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. use Illuminate\Support\Facades\DB;
  6. return new class extends Migration
  7. {
  8. /**
  9. * Run the migrations.
  10. *
  11. * @return void
  12. */
  13. public function up()
  14. {
  15. DB::table('config')->insert([
  16. [
  17. 'field' => 'receiving_address_erc20',
  18. 'val' => "Trftghhnnbg6775tghy678ikuj9807ujht",
  19. 'remark' => '收款地址_ERC20',
  20. 'created_at' => now(),
  21. 'updated_at' => now(),
  22. ],
  23. ]);
  24. }
  25. /**
  26. * Reverse the migrations.
  27. *
  28. * @return void
  29. */
  30. public function down()
  31. {
  32. //
  33. }
  34. };