You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CRUD::field('member_profile_picture')
->type('upload')
->withFiles([
'disk' => 'public', // the disk where file will be stored'path' => '/uploads/member/', // the path inside the disk where file will be stored
]);
I already solve it with backpack v5 ways, something like
//inside my related modelpublicstaticfunctionboot()
{
parent::boot();
static::deleting(function($obj) {
if($obj->member_profile_picture){
\Storage::disk('public')->delete($obj->member_profile_picture);
}
});
}
Did I miss something? let me know, thank you 🙏.
The text was updated successfully, but these errors were encountered:
pxpm
transferred this issue from Laravel-Backpack/community-forum
Jul 26, 2023
Discussed in Laravel-Backpack/community-forum#586
Originally posted by christmex July 26, 2023
Hi guys, I have a problem with V6 uploaders, can you guys help me out?
What do I want?
When I delete the model/entry it will also delete the picture file
What did I do?
reading the documentation and trying it, also I already solved it but with v5 ways
What is actually happening?
It did not delete the picture file when I delete the model/entry
Here's my backpack version
Here's my controller
I already solve it with backpack v5 ways, something like
Did I miss something? let me know, thank you 🙏.
The text was updated successfully, but these errors were encountered: