Fix: Profile visibility, Wallet login alias, and Notification Page crash
This commit is contained in:
@@ -128,8 +128,12 @@ class RatingController extends Controller
|
||||
}
|
||||
|
||||
/** GET /v2/ratings/passenger/{id} */
|
||||
public function passengerRating(string $id): JsonResponse
|
||||
public function passengerRating(Request $request, string $id = null): JsonResponse
|
||||
{
|
||||
$id = $id ?? $request->input('passenger_id');
|
||||
if (!$id) {
|
||||
return response()->json(['status' => 'failure', 'message' => 'Passenger ID required'], 400);
|
||||
}
|
||||
$ratings = DB::connection('primary')->table('ratingPassenger')
|
||||
->where('passenger_id', $id)
|
||||
->orderBy('created_at', 'desc')
|
||||
|
||||
Reference in New Issue
Block a user