$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!
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us