Merge branch 'master' into datagrid-plus-trait
This commit is contained in:
commit
329cf9c08c
|
|
@ -1419,7 +1419,7 @@ return [
|
|||
'new-invoice' => 'Send a notification e-mail after creating a new invoice',
|
||||
'new-refund' => 'Send a notification e-mail after creating a refund',
|
||||
'new-shipment' => 'Send a notification e-mail after creating a shipment',
|
||||
'new-inventory-source' => 'Send a notification e-email after creating a new inventory source',
|
||||
'new-inventory-source' => 'Send a notification e-mail after creating a new inventory source',
|
||||
'cancel-order' => 'Send a notification after canceling an order',
|
||||
],
|
||||
|
||||
|
|
|
|||
|
|
@ -100,8 +100,10 @@ class LocaleRepository extends Repository
|
|||
Storage::delete($locale->locale_image);
|
||||
}
|
||||
|
||||
$locale->locale_image = request()->file($file)->store($dir);
|
||||
$locale->save();
|
||||
if (request()->hasFile($file)) {
|
||||
$locale->locale_image = request()->file($file)->store($dir);
|
||||
$locale->save();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ($locale->locale_image) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue