ReflectionException in Container.php Class image does not exist for intervention -
i tried save image comes form post request using laravel. gives me following error.
reflectionexception in container.php line 741: class image not exist
i did following things : enabling fileinfo extension in php.ini file , composer dumpautoload
nothing work followed guide line here using laravel 5.1
my code bellow
public function saveimage(){ image::make(input::file('files')->getrealpath()) ->resize(870, null, true, false) ->save('foo.jpg'); }
did include
use intervention\image\imagemanagerstatic image;
in top of document?
Comments
Post a Comment