Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image not replacing #40

Open
icodeerror opened this issue Oct 4, 2019 · 1 comment
Open

Image not replacing #40

icodeerror opened this issue Oct 4, 2019 · 1 comment

Comments

@icodeerror
Copy link

I don't know if it is bug or not. I have been trying to update an image but the old image is not deleted/replaced.

My old code which doesn't delete old image

if(isset($request->photo)) {
$model->relation->uploadImage($request->photo);
}

I change it to below and it does replace old image with the new one

// Assign it to variable
$myPhoto = $request->photo;

if(isset($myPhoto)) {
$model->relation->uploadImage($myPhoto);
}

I'm on Laravel 5.8
Imageup v1.0.6

@tinkeshwar
Copy link

Hi, If you are looking for something like Laravel Imager Happy to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants