From a6ce63a6d3c237d0681be21e7a9e490d26385b88 Mon Sep 17 00:00:00 2001 From: Krzysztof Strzelecki Date: Sun, 12 Jul 2020 16:11:49 +0200 Subject: [PATCH] fix nazw tabel bd --- app/Http/Controllers/documentApplicationController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/documentApplicationController.php b/app/Http/Controllers/documentApplicationController.php index 5c1449c..2cef25e 100644 --- a/app/Http/Controllers/documentApplicationController.php +++ b/app/Http/Controllers/documentApplicationController.php @@ -44,7 +44,7 @@ class documentApplicationController extends Controller ->select('users.id','users.name', 'users.surname', 'users.PESEL', 'users.fireStationID','users.phoneNumber', 'users.email', 'ranks.rank', 'unitFunctions.unitFunction', 'users.number') ->first(); - $fireStation = DB::table('firestations')->where("id", '=', $userData->fireStationID)->first(); + $fireStation = DB::table('fireStations')->where("id", '=', $userData->fireStationID)->first(); $test->wniosekNadaniePDF($userData, $request->decoration, $fireStation); } @@ -62,11 +62,11 @@ class documentApplicationController extends Controller ->select('users.id','users.name', 'users.surname', 'users.PESEL', 'users.fireStationID','users.phoneNumber', 'users.email', 'ranks.rank', 'unitFunctions.unitFunction', 'users.number') ->first(); - $userTrainings = DB::table('trainingsfirefighters')->where("trainingsfirefighters.firefighterID", '=', $request->fireFighterID) - ->leftJoin('trainings', 'trainingsfirefighters.trainingID', '=', 'trainings.id') + $userTrainings = DB::table('trainingsFirefighters')->where("trainingsFirefighters.firefighterID", '=', $request->fireFighterID) + ->leftJoin('trainings', 'trainingsFirefighters.trainingID', '=', 'trainings.id') ->get(); - $fireStation = DB::table('firestations')->where("id", '=', $userData->fireStationID)->first(); + $fireStation = DB::table('fireStations')->where("id", '=', $userData->fireStationID)->first(); $test->kartaEwidencyjnaPDF($userData, $fireStation, $userTrainings); }