laravel 4.2 file upload issue
<p><strong>Laravel 4.2</strong></p>

<p>My Code - </p>

<p>image-upload.blade.php</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;Image Upload&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;h1&gt;Upload Files here&lt;/h1&gt;

    &lt;form enctype="multipart/form-data" method="post" action="{{ @url('image-handle') }}"&gt;
   &lt;input type="file" name="image" id="avatarImage" /&gt;
   &lt;input type='hidden' name='_token' value='{{ @csrf_token() }}' /&gt;
   &lt;input type="submit" name="submit"&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Routes - </p>

<pre><code>Route::get('image-upload', function()
{
    return View::make('image-upload');
});

Route::get('image-handle', function()
{
    return Input:: file( 'image' ) -&gt; getFileName();
});
</code></pre>

<p>All i want to do is <strong>var_dump</strong> the file after submit but unfortunately i get is <strong>"Whoops, looks like something went wrong".</strong></p>

<p>Check The image of the error:
<a href="https://i.stack.imgur.com/dT11F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dT11F.png" alt="Error"></a></p>

<p>How to solve this problem and upload image successfully in laravel 4.2 ?</p>

<p>Thanks in Advance!</p>