This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

planetadeleste
planetadeleste

I want to use the https://github.com/dimsav/laravel-translatable Trait to have a multilingual site, but the save method wasn't compatible with October Model.

Declaration of Dimsav\Translatable\Translatable::save() should be compatible with October\Rain\Database\Model::save(array $data = NULL, $sessionKey = NULL)

To made it compatible, I only need to change the method params on Dimsav\Translatable\Translatable::save() or is necessary more changes to have fully work the Translatable Trait with October Models?

Thanks.

daftspunky
daftspunky

You will need to fall back on using Illuminate\Database\Eloquent\Model instead of \Model for this to work.

Or just wait a few days and use the RainLab.Translate plugin when it is released.

https://github.com/rainlab/translate-plugin

Last updated

planetadeleste
planetadeleste

Wow, I think the best option is to wait for RainLab.Translate Plugin.

Many thanks

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.