laravel 4.2 storing/uploading profilce picture and retrieving from database
<p>i m new to laravel 4.2 i'm am developing a web application ..now i want to store a profile picture into database.</p>

<p>this is my controller file code</p>

<pre><code>public function profilepicture(){


 $data = Input::hasfile('file');

 DB::table('company')-&gt;insert(array('data'=&gt;$data));
 return Redirect::to('/companyreg');
}
</code></pre>

<p>this is from route file</p>

<pre><code>Route::any('/company_profile','CompanyController@profilepicture');
</code></pre>

<p>this is form view </p>

<pre><code>&lt;form method="post"  action="{{url('/company_profile')}}"&gt;
&lt;input type="file" name="file" /&gt;
&lt;input type="submit" name="submitfile" value="upload" /&gt;
&lt;/form&gt;
</code></pre>