Search

Showing 7 of 1,975 result(s)

/blog/2022/05/04/working-with-dynamic-variables-in-antlers-runtime#content-using-dynamic-variables

…bles . Dynamic variables let us store (or construct) a variable name as a string, and then get the value associated with that variable name. Dynamic variables begin with the @ character: In the previous example, when we use {{ my_variable_name }}...

/blog/2016/11/20/laravel-helper-function-cookie

…ull an implementation of \Illuminate\Contracts\Cookie \Factory (which is an instance of \Illuminate\Cookie\CookieJar by default) is returned instead. When not being used to return a CookieJar instance, the cookie function makes a call to the make...

/blog/2018/02/19/laravel-5-string-pluralization-syntax#content-examples-of-specific-numbers

The following table will show more examples of handling specific numbers when dealing with pluralization translation. The table will use the following translation message definition: Count Result 0 There are no books! 1 You have one, two or three...

/blog/2018/02/20/laravel-5-string-translation-public-api#content-example-use-5

…resources/lang/en/plural.php . The language file we will create may have some syntax that is unfamiliar, or intimidating at first, but we will cover the pluralization message syntax in further detail in a later section. For now, let's just focus...

/blog/2018/04/14/laravel-5-notifying-server-side-clients-of-events-with-broadcast

The broadcast helper function is similar in function to the event helper function in that, if an event implements the "Illuminate\Contracts\Broadcasting\ShouldBroadcast" interface, it will dispatch the event to all server-side listeners and notify...

/blog/2018/04/22/laravel-5-collections-executing-a-function-on-a-collection-and-returning-the-function-results-with-pipe

The pipe method is similar to the tap method in that it executes the provided $callback function on a copy of the collection; however, unlike the tap method, the pipe method returns the result of the callback function.The following example...

/blog/2018/04/22/laravel-5-collections-returning-collection-elements-that-are-not-present-in-the-specified-collections-with-diffassoc

The diffAssoc method will return the items in the collection where the keys and items are not present in the provided arguments. This method does not modify the original collection; it will return a new collection instance containing the different...