Merge branch 'master' into datagrid-plus-trait

This commit is contained in:
Devansh 2022-02-08 17:12:00 +05:30
commit 329cf9c08c
2 changed files with 5 additions and 3 deletions

View File

@ -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',
],

View File

@ -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) {