How to copy files in laravel 5 controller
<p>I want copy file to folder in laravel.
when I copy file show me this error</p>

<blockquote>
  <p>The second argument to copy() function cannot be a directory  </p>
</blockquote>

<p>My code:</p>

<pre><code>$success = \File::copy(base_path('test.text'),base_path('public/'));
</code></pre>