Example #1
0
 public function getQuestions($sectionId = null, $keyword = null)
 {
     $result = Question::like('title', $keyword)->where('sectionId', $sectionId)->get();
     // return str_replace('\/','/',json_encode(['questions' =>$result]));
     return response()->json(['questions' => $result]);
 }