$image = Input::file('image'); $filename = time() . '.' . $image->getClientOriginalExtension(); $path = public_path('img/products/' . $filename); Image::make($image->getRealPath())->resize(468, 249)->save($path); $product->image = 'img/products/'.$filename; $product->save();
Instead of using relative path I used absolute path and now it works like a charm.
Was having this problem too. thanks for posting your solution!
thanks, very helpful material for me.
Thanks @swgj19 It worked out for me.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.