title: Arrays as input name testing in Laravel 5.1
body: <p>I'm writing some tests for a form I've written in Laravel 5.1 but I'm getting an error saying:</p>
  
  <pre><code>Symfony\Component\CssSelector\Exception\SyntaxErrorException: Expected identifier or "*", but &lt;number "1" at 11&gt; found.
  </code></pre>
  
  <p>The issue is that I'm using 'array' names for some of my fields.</p>
  
  <p>It's a series of questions and I'm using the question ID to map answers:</p>
  
  <pre><code>&lt;label&gt;Your answer for question 1?
      &lt;textarea name="question[1]"&gt;&lt;/textarea&gt;
  &lt;label&gt;
  &lt;label&gt;Your answer for question 2?
      &lt;textarea name="question[2]"&gt;&lt;/textarea&gt;
  &lt;label&gt;
  </code></pre>
  
  <p>Then my test looks like this:</p>
  
  <pre><code>$response = $this-&gt;actingAs($user)
          -&gt;visit('/application/project/1/1')
          -&gt;type('This is a new title', 'title')
          -&gt;type('My Question one Answer', 'question[1]')
          -&gt;press('Save &amp; Next Page');
  </code></pre>
  
  <p>I assume I need to present <code>question[1]</code> differently but I can't see how.</p>