feat : ajout de bâtiment dans les fixtures et seed + organisation du menu
This commit is contained in:
@@ -216,6 +216,7 @@ class SeedCommand extends Command
|
||||
['label' => 'Bâtiment 1', 'code' => 'B1'],
|
||||
['label' => 'Bâtiment 2', 'code' => 'B2'],
|
||||
['label' => 'Bâtiment 3', 'code' => 'B3'],
|
||||
['label' => 'Zone tampon', 'code' => 'ZT'],
|
||||
];
|
||||
foreach ($buildings as $buildingData) {
|
||||
$this->upsertByCode(Building::class, $buildingData['code'], static function (Building $entity) use ($buildingData) {
|
||||
|
||||
@@ -54,6 +54,7 @@ class ReferenceFixtures extends Fixture
|
||||
['label' => 'Bâtiment 1', 'code' => 'B1'],
|
||||
['label' => 'Bâtiment 2', 'code' => 'B2'],
|
||||
['label' => 'Bâtiment 3', 'code' => 'B3'],
|
||||
['label' => 'Zone tampon', 'code' => 'ZT'],
|
||||
];
|
||||
foreach ($buildings as $buildingData) {
|
||||
$building = new Building()
|
||||
|
||||
Reference in New Issue
Block a user