public function findByUid($uid) { return Kiosk::where('uid', $uid)->first(); }
public function check(Request $request) { $kiosk = Kiosk::where('uid', $request->get('uid'))->first(); return response()->json(['success' => true, 'kiosk_id' => $kiosk->id]); }
/** * Run the database seeds. * * @return void */ public function run() { \App\Models\Kiosk::create(['type_id' => 3, 'name' => 'Kisok One', 'uid' => 1, 'secret' => 1]); }