Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Illuminate\Database\Seeder;
- use Illuminate\Support\Facades\DB;
- class ZakatSeeder extends Seeder
- {
- /**
- * Run the database seeds.
- *
- * @return void
- */
- public function run()
- {
- DB::table('zakats')->insert([
- 'nama' => "Darodji",
- 'golongan' => "Ramos",
- 'jumlah' => "37500",
- 'tanggungan' => "2",
- 'total' => "85000",
- ],
- [
- 'nama' => "Sumarno",
- 'golongan' => "Ramos",
- 'jumlah' => "37500",
- 'tanggungan' => "2",
- 'total' => "85000",
- ],
- [
- 'nama' => "Darodji",
- 'golongan' => "Pak Tani",
- 'jumlah' => "35000",
- 'tanggungan' => "2",
- 'total' => "70000",
- ],
- [
- 'nama' => "Darodji",
- 'golongan' => "Bulog",
- 'jumlah' => "21500",
- 'tanggungan' => "1",
- 'total' => "21500",
- ]
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement