Support the ongoing development of Laravel.io →
Configuration
Last updated 2 years ago.
0

Hi !

You can check what's describe in this article : http://keithloy.me/yaml-config-files-in-laravel/ . It's a litlle bit old but it's a good start.

Maybe check what's done with laravel.language.loader event.

Last updated 2 years ago.
0

Firstly thank you for the answer.

But the link you provided is for Laravel 3 - I am using Laravel 4 and I can't comprehend how and when and by whom the language files are being loaded.

It seems the 'laravel.language.loader' no longer exists in Laravel 4.

Last updated 2 years ago.
0

I just made up a little package to do the trick, check it out at https://github.com/Devitek/laravel-yaml-translation .

Just follow the instructions and you should be able to use yml/yaml files instead of classic php files. Tell me if it works for you :).

Last updated 2 years ago.
0

I took a look at your code - I forked your code on GitHub in order to make the code PHP 5.3.x and Laravel 4.0.x compatible.

I tested the Yaml FileLoader and it works well - thank you :)

Last updated 2 years ago.
0

You're welcome :), feel free to make a pull request if you want.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Kaishiyoku kaishiyoku Joined 30 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.