Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Database\Seeders;
  3. use App\Models\Tindakan;
  4. use Illuminate\Database\Console\Seeds\WithoutModelEvents;
  5. use Illuminate\Database\Seeder;
  6. class StatusSeeder extends Seeder
  7. {
  8. /**
  9. * Run the database seeds.
  10. */
  11. public function run(): void
  12. {
  13. $statusTindakan = [
  14. ['statusTindakan' => 'Belum ditindak'],
  15. ['statusTindakan' => 'Diverifikasi'],
  16. ['statusTindakan' => 'Ditindak lanjuti'],
  17. ['statusTindakan' => 'Selesai'],
  18. ];
  19. // Loop through each status and create a record in the database
  20. foreach ($statusTindakan as $statusTindakan) {
  21. Tindakan::create($statusTindakan);
  22. }
  23. }
  24. }