input('code'); if (authModel::create(['code' => $code])) { return $this->successJson('ok'); } return $this->errorJson('fail'); } }