title: Implementing a file upload function, unable to return submitted using csrf token
body: <p>I am trying to implement a file upload function.</p>
  
  <p>I am trying to enter the title, description and upload a file and return this request.. to ensure it is working... however I'm getting the error '404 Not found'.</p>
  
  <p><a href="https://i.stack.imgur.com/hqt7u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hqt7u.png" alt="enter image description here"></a> </p>
  
  <p>I am attempting to use a csrf token in my create.blade.php to produce a string of the data I am entering.. I am not sure what I am doing wrong as I thought my routes were right.</p>
  
  <p>Can anyone help me? I appreciate it. </p>
  
  <p>web.php</p>
  
  <pre><code>Route::namespace('Admin')-&gt;prefix('admin')-&gt;name('admin.')-&gt;group(function(){
          Route::middleware('can:create_files')-&gt;group(function(){
               Route::get('/files/create', 'DocumentController@create');
               Route::post('/files', 'DocumentController@store');
  });
  </code></pre>
  
  <p>create.blade.php</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form action="/files" method="POST" enctype="multipart/form-data"&gt;
  {{csrf_field()}}
      &lt;input type="text" name="title" placeholder="Title"&gt;
      &lt;input type="text" name="description" placeholder="Description"&gt;
      &lt;input type="file" name="file"&gt;
      &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>DocumentController</p>
  
  <pre><code>public function create()
      {
          return view('admin.document.create');
      }
  
  public function store(Request $request)
  {
      return $request;
  }
  </code></pre>