I try upload an image through Laravel form but got this error message

```
Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Call to a member function getClientOriginalExtension() on string

```

My code

```
//photo.blade.php
{{ Form::file('photo', null, array('class' => 'form-control')) }}

//controller.php
$image      = Input::get('photo');
            $fileName   = $user->id . '.' . $image->getClientOriginalExtension();

            $img = Image::make($image->getRealPath());
            $img->resize(500, 500, function ($constraint) {
                $constraint->aspectRatio();                 
            });

            $img->stream();
            Storage::disk('local')->put('images/'.$fileName, $img, 'public');

```