eboye / laravel-nova-translation-editor

Laravel Nova Translation Editor
MIT License
8 stars 5 forks source link

Edit data of languages not save #2

Closed ExsyDev closed 4 years ago

ExsyDev commented 4 years ago

Hello. When I save a message record from database languages table, it writes saved, but nothing changes in the database.. Nova 2.9.2. Table in database is not working,

eboye commented 4 years ago

have you ublished the migration and did php artisan migrate of the laravel-translation-loader ?

Maybe I should add it to readme.md

chosten commented 4 years ago

It does not work with existing records. I can only update a translation the first time, after that it won't update anymore.

olivM commented 4 years ago

the issue is the firstOrCreate in the controller ( should be updateOrCreate )

i made a pull request to fix it : https://github.com/eboye/laravel-nova-translation-editor/pull/4

eboye commented 4 years ago

@olivM thanks. Merged