This commit is contained in:
2025-11-03 18:20:57 +05:00
parent e79d77625f
commit e9f95b7ca8
5 changed files with 31 additions and 23 deletions

View File

@@ -16,18 +16,6 @@ class FillJsonData extends Seeder
*/
public function run(): void
{
}
public function insertByFiles(): void
{
$files = glob(database_path('data').'/*');
foreach ($files as $file) {
$table_data = File::json($file);
$table_name = Str::afterLast(Str::before($file, '.json'), '/');
DB::table($table_name)->insert($table_data);
}
// provinces
}
}

View File

@@ -35,14 +35,6 @@ class ShieldSeeder extends Seeder
'name' => 'admin',
'guard_name' => 'web',
],
[
'name' => 'operator',
'guard_name' => 'web',
],
[
'name' => 'currency_maintainer',
'guard_name' => 'web',
],
])->map(fn ($role) => [
...$role,
'created_at' => now(),