I am trying to use the Laravel 4 language pack file, but I do not know how to do this.
I created a package with php artisan workbench vendor/package --resources . Then I create the workbench/vendor/package/src/lang/en/routes.php .
In this a route file, I have the following:
<?php return [ 'foo' => 'bar' ];
Now how do I access this? I tried with Lang::get('routes.foo') and Lang::get('vendor/package::routes.foo') , but both fail and just give me the parameter itself that I entered. I call it in the boot method for service providers.
laravel laravel-4
Marwelln
source share