Search

Showing 7 of 1,216 result(s)

/blog/2016/11/30/encrypting-and-decrypting-within-laravel-applications#content-encrypting-and-decrypting-data

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...

/blog/2016/11/30/the-laravel-translator#content-getkey-array-replace---locale--null

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...

/blog/2016/11/30/the-laravel-translator#content-transid-array-parameters---domain--messages-locale--null

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...

/blog/2016/11/30/the-laravel-translator#content-choicekey-number-array-replace---locale--null

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...

/blog/2016/11/30/the-laravel-translator#content-transchoiceid-number-array-parameters---domain--messages-locale--null

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...

/blog/2016/11/30/the-laravel-translator#content-loadnamespace-group-locale

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...

/blog/2016/11/30/the-laravel-translator#content-addnamespacenamespace-hint

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...

Some absolutely amazing
people

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.