29 lines
826 B
PHP
29 lines
826 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Indicator;
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class IndicatorSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$indicator = [
|
|
['name' => 'pH Tanah', 'description' => 'Indicator 1 Description'],
|
|
['name' => 'Ketinggian Tempat', 'description' => 'Indicator 2 Description'],
|
|
['name' => 'Ketersediaan Air', 'description' => 'Indicator 3 Description'],
|
|
['name' => 'Curah Hujan', 'description' => 'Indicator 4 Description'],
|
|
['name' => 'Isolasi', 'description' => 'Indicator 5 Description']
|
|
];
|
|
|
|
foreach ($indicator as $item) {
|
|
Indicator::create($item);
|
|
}
|
|
}
|
|
}
|