I found a answer in other place, the solution:
<?php namespace App;
class DomainApplication extends \Illuminate\Foundation\Application {
public function langPath() {
return '/path/to/new/lang/';
}
}
$app = new App\DomainApplication(
realpath(__DIR__.'/../')
);
And now translations are loaded from new path and work without namespace:
dd(trans('passwords.password'));
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community