dimsav / laravel-translatable

[Deprecated] A Laravel package for multilingual models
MIT License
1.95k stars 320 forks source link

[Laravel 4.1] LocalesNotDefinedException #153

Closed mdeprezzo closed 8 years ago

mdeprezzo commented 8 years ago

Hi guys, i'm working on an old project with L4.1, and when i try to save i get this message:

Please make sure you have run "php artisan config:publish dimsav/laravel-translatable" and that the locales configuration is defined.

And this is a little strange, because i've run 'config:publish' command. So, any suggestions ?

dimsav commented 8 years ago

Sorry for the delayed reply. For some reason the $locales variable is empty here.

Please make sure your configuration is set correctly.

mdeprezzo commented 8 years ago

I fixed, my fault. Works fine now Il 05/Ott/2015 18:34, "Dimitris Savvopoulos" notifications@github.com ha scritto:

Sorry for the delayed reply. For some reason the $locales variable is empty here https://github.com/dimsav/laravel-translatable/blob/v4.4/src/Translatable/Translatable.php#L225-L232.

Please make sure your configuration is set correctly.

— Reply to this email directly or view it on GitHub https://github.com/dimsav/laravel-translatable/issues/153#issuecomment-145592591 .

0xd5dc commented 6 years ago

it's still empty in laravel 5.6