猿问

php laravel 判断是否存在

 public function postCollect(Request $request)

    {
            $question= new Question;
            $question_list->uesr_id = Auth::id();
            $question_list->question_id = Input::get('question_id')
            $question_list->question_answer = Input::get('question_answer');

            $question_list->save();

              return "success";
        }

小轩1986
浏览 1592回答 0
0回答
随时随地看视频慕课网APP
我要回答