$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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community