debug the excel reports
This commit is contained in:
@@ -155,9 +155,9 @@ class ReceiptController extends Controller
|
||||
);
|
||||
}
|
||||
|
||||
public function update(Accident $accident, Request $request)
|
||||
public function update(Accident $accident, Request $request, NominatimService $nominatimService)
|
||||
{
|
||||
DB::transaction(function () use ($request, $accident) {
|
||||
DB::transaction(function () use ($request, $accident, $nominatimService) {
|
||||
$accident->province_fa = Province::where('id', $request->province_id)->first()->name_fa;
|
||||
$accident->province_id = $request->province_id;
|
||||
|
||||
@@ -178,7 +178,7 @@ class ReceiptController extends Controller
|
||||
$accident->accident_date = $request->accident_date;
|
||||
$accident->accident_time = $request->accident_time;
|
||||
|
||||
$accident->way_id = get_way_id_from_nominatim($request->lat, $request->lng);
|
||||
$accident->way_id = $nominatimService->get_way_id_from_nominatim($request->lat, $request->lng);
|
||||
|
||||
$accident->save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user