Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4 committed Dec 24, 2024
1 parent 66b4153 commit d8f6340
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Webkul\Core\Repositories\LocaleRepository;
use Webkul\Core\Rules\Code;
use NexaMerchant\Apis\Http\Resources\Api\V1\Admin\Settings\LocaleResource;
use Illuminate\Support\Facades\Event;

class LocaleController extends SettingController
{
Expand Down Expand Up @@ -94,8 +95,11 @@ public function destroy(int $id)
'message' => trans('Apis::app.admin.settings.locales.error.last-item-delete'),
]);
}
Event::dispatch('core.locale.delete.before', $id);

$this->getRepositoryInstance()->delete($id);
$this->getRepositoryInstance()->delete($id);

Event::dispatch('core.locale.delete.after', $id);

return response([
'message' => trans('Apis::app.admin.settings.locales.delete-success'),
Expand Down

0 comments on commit d8f6340

Please sign in to comment.