Advertisement
tanyaaja

ZakatSeeder

Dec 26th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. <?php
  2.  
  3. use Illuminate\Database\Seeder;
  4. use Illuminate\Support\Facades\DB;
  5.  
  6. class ZakatSeeder extends Seeder
  7. {
  8. /**
  9. * Run the database seeds.
  10. *
  11. * @return void
  12. */
  13. public function run()
  14. {
  15.  
  16. DB::table('zakats')->insert([
  17. 'nama' => "Darodji",
  18. 'golongan' => "Ramos",
  19. 'jumlah' => "37500",
  20. 'tanggungan' => "2",
  21. 'total' => "85000",
  22. ],
  23. [
  24. 'nama' => "Sumarno",
  25. 'golongan' => "Ramos",
  26. 'jumlah' => "37500",
  27. 'tanggungan' => "2",
  28. 'total' => "85000",
  29. ],
  30. [
  31. 'nama' => "Darodji",
  32. 'golongan' => "Pak Tani",
  33. 'jumlah' => "35000",
  34. 'tanggungan' => "2",
  35. 'total' => "70000",
  36. ],
  37. [
  38. 'nama' => "Darodji",
  39. 'golongan' => "Bulog",
  40. 'jumlah' => "21500",
  41. 'tanggungan' => "1",
  42. 'total' => "21500",
  43. ]
  44. );
  45.  
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement