Skip to content
Advertisement

joedixon/laravel-translation not updating

I have just installed a Joedixon/Laravel-translation package in Laravel version 8. It shows the words but when I want to update it will not work. I did everything that was said in the documentation and also I’ve read this article about it but it also didn’t work. https://github.com/joedixon/laravel-translation/issues/82

NOTES:

1: I changed the driver to database.

2: adding a new Language works fine

3: while adding new translation it searches in http://localhost/languages/en instead of http://localhost/project_name/languages/en

When I try to update a word it says 404 not found in the console: Console view Routes:

JavaScript

Languages Translation Controller

JavaScript

List of routes

JavaScript

Advertisement

Answer

I solve the Problem which was completely in different place

it’s in public/vendor/translation/js/app.js

JavaScript

just added (“/MY_PROJECT_NAME/public”.concat(“/”) and the problem solved

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement