andywer / laravel-js-localization

Simple, ease-to-use and flexible package for the Laravel web framework. Allows you to use localized messages of the Laravel webapp (see `resources/lang` directory) in your Javascript code.
MIT License
143 stars 51 forks source link

Upgrade to laravel 5 #17

Closed YannPl closed 8 years ago

YannPl commented 8 years ago

Hi ! I've been using your module a lot on my laravel 4.2 project !

We are now upgrading to Laravel 5.1 and having an issue with the cache. Everything else is correctly upgrated and operational but when I run php artisan js-localization:refresh I get the following error message:

Refreshing the message cache...

  [InvalidArgumentException]
  Cache store [] is not defined.

First I thought it was an installation issue. I re-installed everything from scratch following the laravel doc guide. i doubled check every configuration etc... But I'm still having this issue.

It doesn't seem to be a laravel-js-localization bug because when I try to use cache in my own code I have the same bug ! But I'm so desperately in need for a solution that I also post here for any hint..

Does anyone already faced this kind of bug or have any idea of what to try ?

andywer commented 8 years ago

Hi there! Are you using the right branch: laravel-5?

YannPl commented 8 years ago

Sure, I have a more detailed issue on the laravel repo which have immediately been closed: https://github.com/laravel/framework/issues/11702#issuecomment-169044532

You can see my composer.json, config files etc... It seems that it's really the cache of Laravel that doesn't work but no idea of how to correct that :/

YannPl commented 8 years ago

Okay, I'm quite stupid I guess. Just posting the solution if someone ever falls in this "trap" like I did:

While migrating, I pasted config content, key by key to check for new key / config but miss this detail. so I had "driver" => "file" in my 5.1 instead of "default" => "file"

andywer commented 8 years ago

Ahhh. But thank you for posting the explanation :)

Cheers