last day (15 days later) » 

15:27
hi
hey
So what is the filename that is being saved?
Can you show a sample?
thanks for helping me
screenshot?
Sure
No problem
that's how the file directory looks like
i'm trying to save multiple .png files
Got it
I will send you codes change into those for a sec
15:33
thanks
$imageName = time().'.'.$image->getClientOriginalExtension();
$image->move(public_path('images/listing/'.$listing->id), $imageName);
$listingImage->listing_id = $listing->id;
$listingImage->image_path = 'images/listing/'.$listing->id."/".$imageName;
$listingImage->save();
Other codes should be fine
Did that work?
yeah it did
that solved your problem then?
please how can i also resize the images
just use laravel image intervention package
search it and you will see many answers
15:43
yes it solved my problem
thanks a million
Ok I will update the answer then
but can i control the size of the image before it saves in the database?
yes
you can
can you help me please
Follow this link
There is demo code on frontpage just follow the guidelines you will be fine
15:53
thank you

last day (15 days later) »