outl1ne / nova-translatable

A Laravel Nova package that allows you to make any input field translatable.
MIT License
199 stars 57 forks source link

Avatar and details page show the JSON #101

Closed beshoo closed 1 year ago

beshoo commented 1 year ago

Nova : v4.26.1 (Silver Surfer)

image

  "php": "^8.1",
        "laravel/framework": "^10.8",
        "laravel/nova": "~4.0",
        "outl1ne/nova-translatable": "^2.1",
        "spatie/laravel-translatable": "^6.5",
        "tymon/jwt-auth": "^2.0"

https://github.com/outl1ne/nova-translatable/issues/78

beshoo commented 1 year ago

withBreadcrumbs image

Tarpsvo commented 1 year ago

Heya! I suggest you use the HasTranslations trait and spatie/laravel-translatable. Referenced in step 1 of the installation: https://github.com/outl1ne/nova-translatable#installation

beshoo commented 1 year ago

Great, I used it ... but check this out the problem in the user menu! image image

Tarpsvo commented 1 year ago

Seems like an issue with how Nova queries the User resource.

You can use this to fix it in the header: Models/User.php:

public function toArray()
    {
        return array_merge(parent::toArray(), ['name' => $this->name]);
    }
beshoo commented 1 year ago

Thats fix the problem , but.. shuled we report this to Nova!?