title: Why is there question mark after url?
body: <p>I've created route </p>
  
  <pre><code> Route::get('/files/{file}/edit', 'FilesController@edit')-&gt;middleware(['file_owner'])-&gt;name('files.edit');
  </code></pre>
  
  <p>Code from middleware:</p>
  
  <pre><code>$file = $request-&gt;route('file');
        if($file-&gt;owner_id === auth()-&gt;user()-&gt;id){
            return $next($request);
        }
  </code></pre>
  
  <p>When I enter this route from my view</p>
  
  <pre><code>&lt;form action="{{route('files.edit', $file-&gt;id)}}" &gt;
      &lt;button type="submit" class="btn btn-success btn-sm"&gt;Edit file&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Link I get looks like this: <code>http://testproject.local/files/17/edit?</code>
  It doesn't affect functionality, but it is really interesting for my, what is the reason of question mark appearing here?</p>