title: i want to create directory with the name of the Company and i want to move some files related to that Company in that directory. How can i do it?
body: <p>I successfully created the directories with this code in controller:</p>
  <pre><code>$cpath = public_path().'/files/completed/'.$file['customer_name'];
                  if (! File::exists($cpath)) {
                      File::makeDirectory($cpath);
                  }
  </code></pre>
  <p>but I am not sure how can i move related files to these directories for that I tried this:</p>
  <pre><code>File::move('files/pending/'.$filename,'files/completed/'.$file['customer_name'].$filename);
  </code></pre>
  <p>but the problem is I am not getting any files in their respective directories but the files are moving with the name renamed to (comapanyname filename.850) and that's not what I wanted here is how i am doing all the code in controller for directories and files:</p>
  <pre><code> $cpath = public_path().'/files/completed/'.$file['customer_name'];
                  if (! File::exists($cpath)) {
                      File::makeDirectory($cpath);
                  }
         File::move('files/pending/'.$filename,'files/completed/'.$file['customer_name'].$filename);
  </code></pre>
  <p>Thank you for your response!</p>