Showing 7 of 1,216 result(s)
As stated earlier, encryption of data is accomplished by calling the encrypt($$value) method on an Encrypter implementation and decryption of data is accomplished by calling the decrypt($payload) on an Encrypter implementation. The following code...
The get method is used to return the translation for the given key. It defines a $key parameter which corresponds to an array key within the group file. It also accepts an array of replacements (which are passed through the $replace array...
The trans method is identical in usage to the get method. It internally makes a call and returns the value of the get method, passing in the $id , $parameters and $locale . The $domain is not used and is completely ignored. The trans method exists...
The choice method is used to pluralize a given $key , translating it for the given $locale . The choice method accepts the $number of some collection of objects that it should use when making pluralization decisions. Like the get and trans...
The transChoice is functionally identical to the choice method. It internally returns the value of the choice method using the $id , $number , $parameters and $locale parameters. The $domain parameter is not used and is completely ignored. The...
The load method internally makes a call to the load method on the current instance of the Illuminate\Translation\LoaderInterface implementation, which by default is an instance of FileLoader . The Translator additionally keeps an internal cache of...
The Translator class exposes the addNamespace method as part of its public API. The addNamespace internally makes a call to the addNamespace method on the current instance of the Illuminate\Translation\LoaderInterface implementation, which by...
The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.