feat: infrastructure assets management with warranty tracking and EAN lookup integration

This commit is contained in:
jeremy bayse
2026-04-09 21:51:43 +02:00
parent 3544c77bd1
commit b28c56c94c
46 changed files with 2961 additions and 414 deletions

View File

@@ -0,0 +1,43 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class CommuneSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$communes = [
'CABM (Agglomération)',
'Alignan-du-Vent',
'Bassan',
'Béziers',
'Boujan-sur-Libron',
'Cers',
'Corneilhan',
'Coulobres',
'Espondeilhan',
'Lieuran-lès-Béziers',
'Lignan-sur-Orb',
'Montblanc',
'Sauvian',
'Sérignan',
'Servian',
'Valras-Plage',
'Valros',
'Villeneuve-lès-Béziers',
];
foreach ($communes as $commune) {
DB::table('communes')->updateOrInsert(
['nom' => $commune],
['created_at' => now(), 'updated_at' => now()]
);
}
}
}