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 -

ios - MKMapView fails to load tiles with HTTP 410 error -

c# - How to utilize EF and LINQ to add filters and specify tables, columns, filters and order by dynamically -