2026_02_05_163846_insert_config.php 802 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. //
  16. DB::table('config')->insert([
  17. [
  18. 'field' => 'benefits_bibi_return',
  19. 'val' => "每一笔投注都可享返利,长期有效",
  20. 'remark' => '笔笔返利',
  21. 'group_id' => 1,
  22. 'created_at' => now(),
  23. 'updated_at' => now(),
  24. ]
  25. ]);
  26. }
  27. /**
  28. * Reverse the migrations.
  29. *
  30. * @return void
  31. */
  32. public function down()
  33. {
  34. //
  35. }
  36. };