configのsubdir は . でつなぎましたが
こちらはオーソドックスに / でつなぎます。
resources/lang/ja/my/text.php の場合
text.php
return [
'common' => [
'service-name'=>'MyService',
],
];
取得方法
php
$file = '/my/text';
trans($file.'.'.'common');
More than 5 years have passed since last update.
configのsubdir は . でつなぎましたが
こちらはオーソドックスに / でつなぎます。
resources/lang/ja/my/text.php の場合
return [
'common' => [
'service-name'=>'MyService',
],
];
取得方法
$file = '/my/text';
trans($file.'.'.'common');
Register as a new user and use Qiita more conveniently