Пример #1
0
 public function check(Request $request)
 {
     $kiosk = Kiosk::where('uid', $request->get('uid'))->first();
     return response()->json(['success' => true, 'kiosk_id' => $kiosk->id]);
 }
Пример #2
0
 public function findByUid($uid)
 {
     return Kiosk::where('uid', $uid)->first();
 }