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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -