title: Is there a cleaner way to file upload in laravel
body: <p>I want to upload a file using laravel 5. I have a form that takes the file, moves it to the desired destination and saves a record inside of the database as well.</p>
  
  <p>I have the following inside of my controller:</p>
  
  <pre><code>public function store(DestinationWeddingRequest $request)
      {
          $this-&gt;upload($request, $fileName);
  
          DestinationWedding::create([
              'description' =&gt; $request-&gt;get('description'),
              'image_url'   =&gt; $fileName
          ]);
  
          return redirect('destination-weddings');
      }
  </code></pre>
  
  <p>Another method inside of my controller:</p>
  
  <pre><code>public function upload(DestinationWeddingRequest $request, &amp;$fileName)
      {
          $fileName = mt_rand();
  
          $destinationPath = public_path('/images/upload/destination_weddings');
          $request-&gt;file('image_url')-&gt;move($destinationPath, $fileName);
      }
  </code></pre>
  
  <p>I want to know if this is the correct way to do it, or do I need to use some kind of mutator inside of the model?</p>