seed_5.stub 987 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. use Illuminate\Database\Seeder;
  3. class test_class extends Seeder
  4. {
  5. /**
  6. * Auto generated seed file
  7. *
  8. * @return void
  9. */
  10. public function run()
  11. {
  12. \DB::table('test_table')->delete();
  13. \DB::table('test_table')->insert(array (
  14. 0 =>
  15. array (
  16. 'id' => '1',
  17. 'time' => '2013-10-18 14:28:51',
  18. ),
  19. 1 =>
  20. array (
  21. 'id' => '2',
  22. 'time' => '2013-10-18 14:28:51',
  23. ),
  24. 2 =>
  25. array (
  26. 'id' => '3',
  27. 'time' => '2013-10-18 14:28:51',
  28. ),
  29. 3 =>
  30. array (
  31. 'id' => '4',
  32. 'time' => '2013-10-18 14:28:51',
  33. ),
  34. 4 =>
  35. array (
  36. 'id' => '5',
  37. 'time' => '2013-10-18 14:28:51',
  38. ),
  39. ));
  40. }
  41. }