first change

This commit is contained in:
2025-07-27 17:40:56 +05:45
commit f8b9a6725b
3152 changed files with 229528 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace Modules\Admin\Database\Seeders;
use Illuminate\Database\Seeder;
use Modules\Admin\Models\Dropdown;
use Modules\Admin\Models\Field;
class DropdownSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
// $inputArr = [
// 'Nationality' => ['Nepali', 'Others'],
// ];
// foreach ($inputArr as $key => $value) {
// $fieldModel = Field::updateOrCreate(['title' => $key], [
// 'title' => $key,
// ]);
// if ($fieldModel) {
// foreach ($value as $k => $v) {
// Dropdown::updateOrCreate(['title' => $v,
// 'fid' => $fieldModel->id], [
// 'title' => $v,
// 'fid' => $fieldModel->id,
// ]);
// }
// }
// }
}
}