From d637f88b204bd93b9fe23e08779660ca26d98eb0 Mon Sep 17 00:00:00 2001 From: Esma Yilmaz Date: Mon, 9 Dec 2019 13:20:00 +0100 Subject: [PATCH] De seeder aangepast --- app/Http/Controllers/WorkorderController.php | 2 +- database/seeds/DatabaseSeeder.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/WorkorderController.php b/app/Http/Controllers/WorkorderController.php index c7c2414..0f99950 100644 --- a/app/Http/Controllers/WorkorderController.php +++ b/app/Http/Controllers/WorkorderController.php @@ -71,7 +71,7 @@ public function store( Request $request) //echo $WorkProductSupplyId . "is " . $WorkProductSuppliesAmount . "x besteld.
"; if ($WorkProductSuppliesAmount != null ) { - + workproduct::insert ([ 'workorder_id' => $workerorderId, 'supply_id' => $WorkProductSupplyId, diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php index d9f2111..86c71ac 100644 --- a/database/seeds/DatabaseSeeder.php +++ b/database/seeds/DatabaseSeeder.php @@ -14,7 +14,7 @@ public function run() $this->call(RolesTableSeeder::class); $this->call(users::class); $this->call(suppliesSeeder::class); - $this->call(LeasesuppliesTableSeeder::class); $this->call(LeaseTypeTableSeeder::class); + $this->call(LeasesuppliesTableSeeder::class); } }