laravel trans with parameters

Solutions on MaxInterview for laravel trans with parameters by the best coders in the world

showing results for - "laravel trans with parameters"
Rafaela
25 Apr 2017
1//Laravel message localization uses named, not numeric, parameters.
2
3//Rewriting your example message:
4
5'string1' => 'Welcome :user, Please meet :other',
6//You can now use, for example:
7
8trans('string1', [ 'user' => 'Ainsley', 'other' => 'Hayden' ]);