📅  最后修改于: 2022-03-11 14:54:39.236000             🧑  作者: Mango
//Laravel message localization uses named, not numeric, parameters.
//Rewriting your example message:
'string1' => 'Welcome :user, Please meet :other',
//You can now use, for example:
trans('string1', [ 'user' => 'Ainsley', 'other' => 'Hayden' ]);