Laravel-modules: Message Translation

Created on 17 Jan 2017  路  2Comments  路  Source: nWidart/laravel-modules

How can I get the message for validation on path resources/lang/myLang?
The only way that I could make works was creating a method message in my Request file but I don't want make that in each module.
Could you help me?

Most helpful comment

Hello you can use the following:

trans('yourmodule::file.key')
@lang('yourmodule::file.key')

All 2 comments

Hello you can use the following:

trans('yourmodule::file.key')
@lang('yourmodule::file.key')

@nWidart That should be @lang() instead of @trans(). (I made the same mistake the other day too. D:)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Warchiefs picture Warchiefs  路  12Comments

KyawNaingTun picture KyawNaingTun  路  16Comments

oleaass picture oleaass  路  11Comments

zcwilt picture zcwilt  路  11Comments

dexcell picture dexcell  路  10Comments