Search

Showing 7 of 1,216 result(s)

/blog/2016/11/30/laravel-collection-public-api-sortby#content-sortnatural-and-sortflagcase-for-case-insensitivity

The SORT_FLAG_CASE flag can be combined with the SORT_NATURAL flag to treat each item as a string while also ignored the case of each item. The following example shows how to use the SORT_NATURAL with the SORT_FLAG_CASE flag when sorting the...

/blog/2016/11/30/laravel-collection-public-api-sortby#content-sortnatural--sortflagcase-result-comparison

Option Result Original Order 0 1 2 3 4 5 6 7 8 9 10 11 12 SORT_NATURAL 7 6 3 1 0 5 2 11 10 9 4 8 12 SORT_NATURAL | SORT_FLAG_CASE 7 6 1 0 5 2 11 10 9 4 3 8 12

/blog/2016/11/30/laravel-localization-the-file-loader#content-fileloader-public-api

The FileLoader implements the Illuminate\Translation\LoaderInterface contract. The LoaderInterface requires two public methods load and addNamespace . FileLoader does not add any extra public methods to its implementation.

/blog/2016/11/30/laravel-localization-the-file-loader#content-loadlocale-group-namespace--null

The load method is used to load the messages for the provided $locale . The load method also requires a $group to be specified. The $group corresponds to the actual file of key/value pairs that should be loaded (such as pagination.php or...

/blog/2016/11/30/laravel-localization-the-file-loader#content-addnamespacenamespace-hint

The addNamespace method is responsible for adding a given $namespace to the loader. Each namespace requires a $hint . The $namespace parameter is used to give a name to the namespace, which typically would correspond to a package name, or some...

/blog/2016/11/30/laravel-localization-the-file-loader#content-translation-namespaces

To prevent conflicts between multiple vendors using the same group names for a particular locale, the translator component allows the usage of "namespaces". Namespaces are a way to refer to a specific collection of locales and groups, where...

/blog/2016/11/30/laravel-string-pluralization#content-message-tags

Message tags act as a sort of comment to help explain the various translation messages when dealing with pluralization. Tags appear at the beginning of a translation message, contain no spaces and end with one colon character ( : ). The following...