Support the ongoing development of Laravel.io →
Configuration Packages Testing
Last updated 2 years ago.
0
$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);

0

public_path is a method and I don't think takes those arguments - I usually append to it

public_path().'/src/img/'.$filename;
0

TerrePorter. I just made save($path)works fine . i got the idea when you said same destination . Thanks

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Pat-Paran pat-paran Joined 10 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.