$image=Input::file('imageOne');
$filename = time() . '.' . $image->getClientOriginalExtension();
$path = public_path('src/img/' . $filename);
Image::make($image->getRealPath())->resize(468, 249)->save('public/src/img/'.$filename);
Are these the same destination ? $path vs ->save('public/src/img/'.$filename);
public_path is a method and I don't think takes those arguments - I usually append to it
public_path().'/src/img/'.$filename;
TerrePorter. I just made save($path)works fine . i got the idea when you said same destination . Thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community