How to move a base64 decoded image in Laravel (to directory)?
<p>I have a form, where I upload an image in base64encode.</p>

<pre><code>&lt;input type=hidden value=.....(base64encode string) /&gt;
</code></pre>

<p>In Laravel's method (where I handle input data) I have</p>

<pre><code>$data = Request::all(); // get all input data
$img = base64_decode($data["img"]); // my decoded image
</code></pre>

<p>How can I move this decoded image in (any) directory? In Laravel's manual I've read about</p>

<pre><code>$request-&gt;file('photo')-&gt;move($destinationPath);
</code></pre>

<p>But I don't know how to use it in my case.</p>