Search

Showing 7 of 1,975 result(s)

/blog/2017/12/06/laravel-5-string-helpers-getting-the-singular-form-of-a-string-value

The singular helper method is the logical opposite to the plural method: it will attempt to take a given $value and return the singular form of that word. The internal mechanisms are similar to the plural method.

/blog/2017/12/06/laravel-5-string-helpers-replacing-the-last-occurrence-of-a-value#content-signature

The following examples highlight the basic usage of the replaceLast method. The results of the method call will appear above the call as a comment.

/blog/2018/02/20/laravel-5-string-translation-public-api#content-signature-8

The signature of the addNamespace method is: The parameters of this method match the parameters of the loader's addNamespace method.

/blog/2018/02/20/laravel-5-string-translation-public-api#content-signature-12

The signature of the getSelector method is: public function getSelector();

/blog/2018/02/20/laravel-5-string-translation-public-api#content-signature-15

The signature of the getLocale method is: public function getLocale();

/blog/2018/04/11/laravel-5-ensuring-a-value-is-an-array-with-wrap

At some point in your PHP adventures, you have either seen, or written code like the following: The wrap method allows you to accomplish the same task with much cleaner, and clearer syntax.

/blog/2018/04/14/laravel-5-accessing-and-manipulating-session-data-with-session#content-setting-a-session-value

The session function allows setting session values directly by passing in an array of key/value pairs. The following example demonstrates this: Setting single session values is also possible: