Showing 10 of 1,204 results.

Laravel Collection Public API: keyBy

…allback function like so: 1 <?php 2 3 $ results = $ people -> keyBy ( function ( $ item ) { 4 return $ item [ ' id ' ] ; 5 } ) ; However, the above example is overly complicated if all we were interested in was just the id of the person. We could...

Looking Forward | Rebuilding Stillat.com

The process of rebuilding the site has been fun, and there is still much work to be done. However, I am glad that the brunt of the work is done so that I can get back to publishing content again more consistently. I also have some ideas for video...

Removing Comments | Managing Comments

…g the "Delete" option below the comment's content. There are a few things to remember when removing a comment: Addons may elect to "soft-delete" a comment. This means they won't show up by default, but will still be available in storage,,...

Laravel 5: Managing HTTP Cookies With cookie

…ar by default) is returned instead. When not being used to return a CookieJar instance, the cookie function makes a call to the make method on an instance of the CookieJar (which is resolved using the application container) using all of the...

Example Use | Laravel 5: String Translation Public API

In the following examples, we will look at the various ways we can invoke the get method. We will start with simple translation line retrieval and gradually work through using the remaining parameters.

Example Use | Laravel 5: String Translation Public API

The following examples will demonstrate how to make equivalent calls between the trans and the get method. For more detailed explanation of each of the parameters, see the section on the get method. In the following example, we will use the trans...