fix seeder: capture $v1 and $v2 (used later in deals)

This commit is contained in:
2026-05-06 18:23:04 +00:00
parent 3328f9f1c6
commit 181c59ad94
+2 -2
View File
@@ -135,11 +135,11 @@ class DatabaseSeeder extends Seeder
); );
// ─── Mașini demo ────────────────────────────────────────── // ─── Mașini demo ──────────────────────────────────────────
Vehicle::firstOrCreate( $v1 = Vehicle::firstOrCreate(
['company_id' => $psauto->id, 'client_id' => $c1->id, 'make' => 'BMW', 'model' => 'X5'], ['company_id' => $psauto->id, 'client_id' => $c1->id, 'make' => 'BMW', 'model' => 'X5'],
['year' => 2020, 'plate' => 'CIU 001', 'engine' => '3.0i', 'gearbox' => 'Automat 8AT', 'fuel' => 'Benzină', 'mileage' => 85000, 'color' => 'Alb'] ['year' => 2020, 'plate' => 'CIU 001', 'engine' => '3.0i', 'gearbox' => 'Automat 8AT', 'fuel' => 'Benzină', 'mileage' => 85000, 'color' => 'Alb']
); );
Vehicle::firstOrCreate( $v2 = Vehicle::firstOrCreate(
['company_id' => $psauto->id, 'client_id' => $c2->id, 'make' => 'Audi', 'model' => 'A4'], ['company_id' => $psauto->id, 'client_id' => $c2->id, 'make' => 'Audi', 'model' => 'A4'],
['year' => 2019, 'plate' => 'CIU 002', 'engine' => '2.0 TDI', 'gearbox' => 'DSG7', 'fuel' => 'Diesel', 'mileage' => 45000, 'color' => 'Negru'] ['year' => 2019, 'plate' => 'CIU 002', 'engine' => '2.0 TDI', 'gearbox' => 'DSG7', 'fuel' => 'Diesel', 'mileage' => 45000, 'color' => 'Negru']
); );