i am new to laravel.Here i am trying to create an image upload and validation functionality .I am using laravel 5.2.I have the following form in my create.blade.php file.
{!!Form::open(array('url'=>'user')) !!}
{!!Form::label('name','Your name')!!}
{!!Form::text('name')!!}
</br>
{!!Form::label('image','Upload an image')!!}
{!! Form::file('image') !!}
</br>
{!!Form::label('password','Type Password')!!}</br>
{!!Form::password('password','',array('placeholder'=>'put your password here'))!!}
</br>
{!!Form::submit('submit')!!}
{!!Form::close()!!}
in my userController.php resource controller ,inside store() function i have the following validation rule defined :
$rules = array(
'name' => 'unique:users,name|required|alpha_num',
'password'=>'required',
'image' => 'mimes:jpeg,jpg,png,gif|required|max:10000'
);
no matter what image i upload i am getting the following error.How i can solve this problem?