Answers for "laravel trans with parameters"

PHP
1

laravel trans with parameters

//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' ]);
Posted by: Guest on August-12-2021

Code answers related to "laravel trans with parameters"

Browse Popular Code Answers by Language