Skip to content

Instantly share code, notes, and snippets.

View adamgoose's full-sized avatar

Adam Engebretson adamgoose

View GitHub Profile
@adamgoose
adamgoose / readme.md
Last active August 29, 2015 14:10 — forked from anonymous/readme.md

TMM.io

Translating Models

The package at https://github.com/dimsav/laravel-translatable is installed. In order to translate particular fields on an existing model, follow the steps below.

Setting up the Database and Eloquent

If you are creating a translatable model for the first time, do not add the translatable columns to the parent model's migration or model. They will be handled through the Translation Model. Hopefully the instructions here will clarify this a bit.