Search

Showing 7 of 1,975 result(s)

/blog/2018/02/20/laravel-5-string-translation-public-api#content-providing-replacements-for-translation-lines

In the previous example, we looked at how to retrieve individual translation lines. In this section, we will look at how to process replacements with the translator. Replacements are supplied as a key/value pair. The replacement keys will be...

/blog/2018/04/15/laravel-5-displaying-variable-data-and-stopping-script-execution-for-debugging-with-dd

…ole (CLI) or if it is returning a response to a web client, such as a browser; it will update its output accordingly.The signature of the dd function is:The uses of the dd function are vast, and you will undoubtedly come up with your own great...

/blog/2018/04/22/laravel-5-collections-calculating-the-average-value-of-a-collection-with-average#content-using-average-with-higher-order-messages

The average method can also be used with higher order messaging, which allows us to invoke collection methods and access object instance properties using PHP's property accessors syntax. In the reject section, we created a Product class that was...

/blog/2018/04/22/laravel-5-collections-calculating-the-average-value-of-a-collection-with-avg#content-using-avg-with-higher-order-messages

The avg method can also be used with higher order messaging, which allows us to invoke collection methods and access object instance properties using PHP's property accessors syntax. In the reject section, we created a Product class that was used...

/blog/2018/04/22/laravel-5-collections-retrieving-the-maximum-value-of-a-collection-with-max

The max method can be used to retrieve the maximum value of the given $key . By default, the $key is null and will function in a similar way to PHP's max function.The following code example highlights the usage of max without specifying a $key :...

/blog/2014/04/02/how-does-php-work-with-the-web-server-and-browser#content-the-request-life-cycle

So what exactly is happening when a user types in the URL http://example.org ? When a user types in http://example.org in a Web client (a browser, for instance), the client issues a GET request to the server (let's assume that we are both using...

/blog/2014/12/13/semantic-ui-paginator-for-laravel-4#content-step-1-the-presenter

…ite a SemanticPresenter class. This class is what Laravel 4 will use when constructing the links for the pagination elements. So let's start it. Create a new file named SemanticPresenter.php somewhere where composer and your project can find it....