This is my html code
{{Form::open(array('route'=>'admins.changePicture', 'class' => 'mainInformationContrainer', 'method'=> 'POST', 'file' => true)) }}
<ul>
<li>
<label>Picture</label>
<div class="oneInfo thumbnail">
<img src="#" id="imageID">
</div>
</li>
<li>
<label>.</label>
<div class="oneInfo" style="width: 200px; overflow: hidden">
<span class="spanForFileInput">
<input type="button" class="selectImage" value="Select Image" />
<input type="file" value="Select Image" id="imgInp"/>
</span>
<input type="submit" />
</div>
</li>
<li>
<label></label>
<div class="oneInfo">
</div>
</li>
</ul>
{{ Form::close() }}
and in my controller I do this
public function changePicture(){
$image = Input::file('imageID');echo $image; exit;
}
I got an empty result
my question is how to catch the image in the controller and if you how to save it to my sql database? my column is from type longblob