TIF_E41200319/Website/database/seeders/PosyanduSeeder.php

61 lines
1.6 KiB
PHP
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class PosyanduSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
DB::table('posyandus')->insert([
[
'name' => 'Cempaka 1',
'alamat' => 'Puskesmas Mangaran, Mangaran - Situbondo'
],
[
'name' => 'Cempaka 2',
'alamat' => 'Puskesmas Mangaran, Mangaran - Situbondo'
],
[
'name' => 'Melati 1',
'alamat' => 'Puskesmas Mangaran, Mangaran - Situbondo'
],
[
'name' => 'Melati 2',
'alamat' => 'Puskesmas Mangaran, Mangaran - Situbondo'
],
[
'name' => 'Anggrek 1',
'alamat' => 'Puskesmas Mangaran, Mangaran - Situbondo'
],
[
'name' => 'Anggrek 2',
'alamat' => 'Puskesmas Mangaran, Mangaran - Situbondo'
],
[
'name' => 'Mawar',
'alamat' => 'Puskesmas Mangaran, Mangaran - Situbondo'
],
[
'name' => 'Wijaya Kusuma',
'alamat' => 'Puskesmas Mangaran, Mangaran - Situbondo'
],
]);
// Cempaka 1 : 31
// Cempaka 2 : 22
// Melati 1 : 32
// Melati 2 : 36
// Anggrek 1 : 68
// Anggrek 2 : 20
// Mawar : 58
// Wikus : 38
}
}