FAQ
Last updated
Was this helpful?
Last updated
Was this helpful?
Examples for all the package features can be found used for the .
Got any question or suggestion? Feel free to open an .
You are awesome! Watch the repo and reply to the issues. You will help offering a great experience to the users of the package. #communityWorks
Translatable is fully compatible with all kinds of Eloquent extensions, including Ardent. If you need help to implement Translatable with these extensions, see this .
Please see the installation steps to understand how your database should be structured.
If your properties are written in english, we recommend using these commands in your migrations:
For example, let's image we want to find the Post
having a PostTranslation
title equal to My first post
.
If you see the following mysql error:
For tables already created in production, update your migrations to change the engine of the table before adding the foreign key constraint.
For new tables, a quick solution is to set the storage engine in the migration:
The best solution though would be to update your mysql version. And always make sure you have the same version both in development and production environment!
We provide a to order the main model entries by its translation values.
You can find more info at the Laravel . But we also provide to cover the most common scenarios.
Then your tables have the MyISAM engine which doesn't allow foreign key constraints. MyISAM was the default engine for mysql versions older than 5.5. Since , tables are created using the InnoDB storage engine by default.