Applied manual JWT check and restored all driver fields2

This commit is contained in:
Hamza-Ayed
2026-04-25 13:32:35 +03:00
parent e306217806
commit ee9c0f3a04
11 changed files with 36 additions and 257 deletions

View File

@@ -46,7 +46,7 @@ class TrackingController extends Controller
return response()->json([
'status' => 'success',
'data' => [
'message' => [
'latitude' => $location->latitude,
'longitude' => $location->longitude,
'heading' => $location->heading,
@@ -88,7 +88,7 @@ class TrackingController extends Controller
return response()->json([
'status' => 'success',
'data' => [
'message' => [
'latitude' => $location->latitude ?? null,
'longitude' => $location->longitude ?? null,
'heading' => $location->heading ?? null,
@@ -172,7 +172,7 @@ class TrackingController extends Controller
return response()->json([
'status' => 'success',
'data' => $finalData
'message' => $finalData
]);
}
@@ -222,7 +222,7 @@ class TrackingController extends Controller
return response()->json([
'status' => 'success',
'data' => [
'message' => [
'total_rides' => $totalRides,
'today_rides' => $todayRides,
'today_earnings' => round($todayEarnings, 2),