title: laravel foreach input radiobutton displayed incorrectly
body: <p>I'm trying to display the options for the questions. i have the problem that when im doing it this way:</p>
  
  <pre><code>@section('content')
  &lt;div class="card"&gt;
    &lt;div class="card-header"&gt;Quiz: {{$category-&gt;name}}:&lt;/div&gt;
    &lt;div class="card-body"&gt;
      &lt;form action="#" method="post" class="form-group"&gt;
        @csrf
        @foreach($questions as $key =&gt; $question)
          &lt;div class="form-group"&gt;
            &lt;label for="question"&gt;Question {{1+$key}}:&lt;/label&gt;
            &lt;p class="card-text"&gt;{{$question-&gt;question_text}}&lt;/p&gt;
            @foreach($question-&gt;option_text as $key =&gt; $option)
              &lt;input type="radio"&gt;{{$option}}
            @endforeach
          &lt;/div&gt;
          @endforeach
        &lt;div class="form-group"&gt;
          &lt;input type="submit" class="btn btn-primary"&gt;
        &lt;/div&gt;
      &lt;/form&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  @endsection
  </code></pre>
  
  <p>i can check all radio buttons at the same time but if i put there a name for the radiobutton i can check only one of the options for the whole questions.. i think there's something strange with the foreach loop..</p>
  
  <p>Info: the table "questions" has the following rows:
  id, category_id, question_text, correct_answer, option_text (this is a json-field that is casted to an array) </p>
  
  <p>Code from Controller:</p>
  
  <pre><code>public function store(Request $request, Category $category){
    if($request-&gt;categoryTest == $category-&gt;name){
      $questions = $category-&gt;question()-&gt;inRandomOrder()-&gt;get();
      return view('user.test', compact('questions', 'category'));
    }
  }
  </code></pre>
  
  <p>do you have an idea how to fix this? thank you!</p>