title: Laravel phpunit testing get with parameters
body: <p>I am writing some tests for my controllers but one of my tests doesn't work. It's supossed to search and <strong>get the results back to the page</strong>. But it's actually redirecting to the home page. Here is my code:</p>
  
  <pre><code>use DatabaseMigrations;
  protected $user;
  public function setUp()
  {
      parent::setUp();
  
      $this-&gt;seed();
  
      $this-&gt;user = factory(User::class)-&gt;create(['role_id' =&gt; 3]);
  }
  
  /** @test */
  public function test_manage_search_user()
  {
      $response = $this-&gt;followingRedirects()-&gt;actingAs($this-&gt;user)-&gt;get('/manage/users/search', [
          'choices' =&gt; 'username',
          'search' =&gt; $this-&gt;user-&gt;username,
      ]);
  
      $response-&gt;assertViewIs('manage.users');
      $response-&gt;assertSuccessful();
      $response-&gt;assertSee($this-&gt;user-&gt;email);
  }
  </code></pre>
  
  <p>The URL you should get to make it work look like this:</p>
  
  <pre><code>http://localhost/manage/users/search?choices=username&amp;search=Test
  </code></pre>
  
  <p>I checked again and it looks like it's not given in the <strong>parameters with the get request</strong>. How can I fix this?</p>