Intégration reservations et mock lavage
This commit is contained in:
@@ -25,9 +25,9 @@ class WashController extends Controller
|
||||
|
||||
public function start(StartWashRequest $request): JsonResponse
|
||||
{
|
||||
$machine = Machine::query()
|
||||
->where('uuid', $request->string('machine_uuid')->toString())
|
||||
->firstOrFail();
|
||||
$machine = $request->filled('machine_uuid')
|
||||
? Machine::query()->where('uuid', $request->string('machine_uuid')->toString())->firstOrFail()
|
||||
: Machine::query()->where('qr_code', $request->string('qr_code')->toString())->firstOrFail();
|
||||
|
||||
$bookingId = null;
|
||||
if ($request->filled('booking_uuid')) {
|
||||
|
||||
Reference in New Issue
Block a user