How to override the delete confirmation modal in Laravel Nova
Asked Answered
F

1

8

When deleting a Laravel Nova resource, the message "Are you sure you want to delete the selected resources" is displayed in a confirmation modal. How can I override this for a specific resource?

Freightage answered 9/12, 2018 at 19:31 Comment(0)
S
0

Create a file en.json in the given path on root location.

lang/vendor/nova/en.json

override the constant value

"Are you sure you want to delete the selected resources?": "Some Custom Message",

Run following command to clear cache.

php artisan config:clear
php artisan cache:clear

Output:

enter image description here

Sidras answered 23/8 at 1:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.