public function check(Request $request) { $kiosk = Kiosk::where('uid', $request->get('uid'))->first(); return response()->json(['success' => true, 'kiosk_id' => $kiosk->id]); }
public function findByUid($uid) { return Kiosk::where('uid', $uid)->first(); }