mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 21:44:51 +00:00
fixed uploaded attachment not removed
This commit is contained in:
committed by
Mohit Panjwani
parent
f34dac9d3f
commit
8ba84f68c7
@@ -17,6 +17,9 @@ class ProfileController extends Controller
|
||||
|
||||
$customer->update($request->validated());
|
||||
|
||||
if (isset($request->is_customer_avatar_removed) && (bool) $request->is_customer_avatar_removed) {
|
||||
$customer->clearMediaCollection('customer_avatar');
|
||||
}
|
||||
if ($customer && $request->hasFile('customer_avatar')) {
|
||||
$customer->clearMediaCollection('customer_avatar');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user