We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f76198 commit 7a1ccb0Copy full SHA for 7a1ccb0
app/Http/Controllers/Api/LicenseSeatsController.php
@@ -80,7 +80,7 @@ public function show($licenseId, $seatId) : JsonResponse | array
80
81
$this->authorize('view', License::class);
82
83
- if ($licenseSeat = LicenseSeat::where('id',$seatId)->where('license_id', $licenseId)->first()) {
+ if ($licenseSeat = LicenseSeat::where('license_id', $licenseId)->find($seatId)) {
84
return (new LicenseSeatsTransformer)->transformLicenseSeat($licenseSeat);
85
}
86
0 commit comments