I installed Laravel Intervention Image class by composer, from this tutorial, And when I type composer update, composer returns:
D:\WEB\htdocs\zanbil>composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing intervention/image (dev-master b91b0d6)
Downloading: 100%
Downloading: 100%
intervention/image suggests installing intervention/imagecache (Caching extension for the Intervention Image library)
intervention/image suggests installing ext-imagick (to use Imagick based image processing.)
Writing lock file
Generating autoload files
Generating optimized class loader
And this is what I am going to use with Intervention Image:
$image=Input::file('image');
$name = Input::file('image')->getClientOriginalName();
var_dump(Image::make($image->getRealPath()->resize('280','280')->save('public/up/city/'.$name)));
And when I run that code Laravel return (with browser):
Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_ERROR) Call to a member function resize() on a non-object