this is my controller
public function quizAdd()
{
$question=Input::get('question');
$category_id=Input::get('category_id');
$type=Input::get('type');
// $quiz_id=Input::get('quiz_id');
$correct=Input::get('correct');
$answer=Input::get('answer');
// dd($correct);
if (Request::isMethod('post')){
$q_id = DB::table('quizes')->insertGetId (array(
'question'=>$question,
'category_id'=>$category_id,
'type'=>$type));
this is my controller public function quizAdd() { $question=Input::get('question'); $category_id=Input::get('category_id'); $type=Input::get('type'); // $quiz_id=Input::get('quiz_id'); $correct=Input::get('correct'); $answer=Input::get('answer'); // dd($correct);
foreach ($answer as $answer) {
else {
} } return redirect('content_dashboard')->with(compact('answer')); }
this is my view