示例#1
0
 public function store($qid, Request $req, choice $choice)
 {
     $choice->fill($req->all())->save();
     $message = 'تم اضافة الاجابة بنجاح';
     if (request('submit') == 'save') {
         return redirect()->back()->with('success', $message);
     } else {
         return redirect()->route('choice.index', array('qid' => $qid))->with('success', $message);
     }
 }