03.12.2015 Views

laravel4cookbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Multisites 214<br />

I’ve used very similar code to what can be found in vendor/laravel/framework/src/Illuminate/-<br />

Translation/TranslationServiceProvider.php. That’s because I’m still using the old file-based<br />

loading system to get the translated phrases initially. We’ll only return cached data in subsequent<br />

retrievals.<br />

Lastly; we need to override how the translator fetches the data.<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!