{"action":"created","issue":{"url":"https://api.github.com/repos/vsch/laravel-translation-manager/issues/21","labels_url":"https://api.github.com/repos/vsch/laravel-translation-manager/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/vsch/laravel-translation-manager/issues/21/comments","events_url":"https://api.github.com/repos/vsch/laravel-translation-manager/issues/21/events","html_url":"https://github.com/vsch/laravel-translation-manager/issues/21","id":124715210,"number":21,"title":"Does it use table prefix?","user":{"login":"Sennik","id":5636394,"avatar_url":"https://avatars.githubusercontent.com/u/5636394?v=3","gravatar_id":"","url":"https://api.github.com/users/Sennik","html_url":"https://github.com/Sennik","followers_url":"https://api.github.com/users/Sennik/followers","following_url":"https://api.github.com/users/Sennik/following{/other_user}","gists_url":"https://api.github.com/users/Sennik/gists{/gist_id}","starred_url":"https://api.github.com/users/Sennik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sennik/subscriptions","organizations_url":"https://api.github.com/users/Sennik/orgs","repos_url":"https://api.github.com/users/Sennik/repos","events_url":"https://api.github.com/users/Sennik/events{/privacy}","received_events_url":"https://api.github.com/users/Sennik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-04T08:31:19Z","updated_at":"2016-01-04T10:22:44Z","closed_at":null,"body":"After installation and configuration using the package says the table ltm_translations does not exist. The table is migrated and available though. I use a table prefix in database.php mysql configuration (aaa_) so the physical name is aaa_ltm_translations. Works well all over Laravel 5.1 but not in this package?\r\n\r\nThe error:\r\n```mysql\r\nSQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydatabase.ltm_translations' doesn't exist (SQL: SELECT * FROM ltm_translations WHERE `group` = AND locale IN ('en','fr','en','fr')\r\nUNION ALL\r\nSELECT DISTINCT\r\nNULL id,\r\nNULL status,\r\nlocale,\r\n`group`,\r\n`key`,\r\nNULL value,\r\nNULL created_at,\r\nNULL updated_at,\r\nNULL source,\r\nNULL saved_value,\r\nNULL is_deleted,\r\nNULL was_used\r\nFROM\r\n(SELECT * FROM (SELECT DISTINCT locale FROM ltm_translations WHERE 1=1 AND locale IN ('en','fr','en','fr')) lcs\r\nCROSS JOIN (SELECT DISTINCT `group`, `key` FROM ltm_translations WHERE `group` = AND locale IN ('en','fr','en','fr')) grp) m\r\nWHERE NOT EXISTS(SELECT * FROM ltm_translations t WHERE t.locale = m.locale AND t.`group` = m.`group` AND t.`key` = m.`key`)\r\nORDER BY `key` ASC)\r\n```\r\nAlso, I configured only one language at first in the primary_locale variable and the locales array: 'en'.\r\n\r\nWhen I do php artisan translations:import I get:\r\n\r\n```\r\nBase table or view not found: 1146 Table 'mydatabase.ltm_translations' doesn't exist (SQL: SELECT * FROM ltm_translations WHERE locale = de AND `group` = auth\r\n```\r\nWhere is the 'de' here and the 'fr' in the former example coming from?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vsch/laravel-translation-manager/issues/comments/168634090","html_url":"https://github.com/vsch/laravel-translation-manager/issues/21#issuecomment-168634090","issue_url":"https://api.github.com/repos/vsch/laravel-translation-manager/issues/21","id":168634090,"user":{"login":"vsch","id":10299086,"avatar_url":"https://avatars.githubusercontent.com/u/10299086?v=3","gravatar_id":"","url":"https://api.github.com/users/vsch","html_url":"https://github.com/vsch","followers_url":"https://api.github.com/users/vsch/followers","following_url":"https://api.github.com/users/vsch/following{/other_user}","gists_url":"https://api.github.com/users/vsch/gists{/gist_id}","starred_url":"https://api.github.com/users/vsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsch/subscriptions","organizations_url":"https://api.github.com/users/vsch/orgs","repos_url":"https://api.github.com/users/vsch/repos","events_url":"https://api.github.com/users/vsch/events{/privacy}","received_events_url":"https://api.github.com/users/vsch/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T10:22:44Z","updated_at":"2016-01-04T10:22:44Z","body":"@Sennik, new version published. I tested it using the alternative connections option in the Web UI by defining a new database connection with a prefix and creating a copy of the translations table with a prefix.\r\n\r\nNot an extensive test but under the time constraints I could not do more. I am in the middle of a release for my IntelliJ idea-multimarkdown plugin and until it is done time is in short supply.\r\n\r\nLet me know if you encounter other issues. I will make time to respond. "}}