Voyager: got an error with enabled multilingual on fresh installed admin panel

Created on 2 Sep 2017  路  8Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.5.x-dev 7166315
  • Voyager Version: dev-master 0fa753f
  • PHP Version: 7.1.7
  • Database Driver & Version:

Description:

i've got an error with enabled multilingual on fresh installed admin panel

Steps To Reproduce:

  1. install fresh dev laravel,
  2. require tcg/voyager dev with dummy data
  3. enable multilingual in config/voyager.php
  4. login by default admin
  5. go to posts - /admin/posts

LogicException thrown with message "TCGVoyagerModelsPost::translatable must return a relationship instance."
Stacktrace.txt

in HasAttributes->getAttribute() $this object has no attributes

After adding mutator in voyager Post model, i can browse posts :)
public function getTranslatableAttribute(){
return $this->translatable;
}

but the translation does not work when editing the post and switching locales in UI

thanks

bug

Most helpful comment

Does anyone solved it?

All 8 comments

Same here on every translatable model. Menu and other. And on pages it throws not found error

i have tried laravel 5.5.0, same problem

Maybe because it is still on development v.1.0 . We have to wait and see.

I guess it's because Voayger not updating the translations table in database (is still on development?).

I have the same problem: laravel 5.5.0

Does anyone solved it?

Hello guys, sorry for the delay, will take a look on that.

Thank you man

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IvanBohonosiuk picture IvanBohonosiuk  路  4Comments

kevinjon27 picture kevinjon27  路  3Comments

popica80 picture popica80  路  3Comments

zzpwestlife picture zzpwestlife  路  3Comments

ferrywae picture ferrywae  路  4Comments