Showing 7 of 1,975 result(s)
…lade. Each transformer implementation keeps track of which elements it created, and what parts of the original document they correspond to. The transformer also keeps track of what extra elements it created to influence the structure and which...
Now that our text box will send the hidden input values, what should we do about the actual pagination links? When a user clicks on one of those, it just sends the page number, and none of the search data. That's no good. Well, in our view where...
…use of Service Providers. The Calculator class instance was bound as a singleton because there does not need to possibly hundreds of instances of Calculator created: many consumers of the class can share a single instance (note that not all...
…loaded from the /resources/lang/ directory by default. The lang/ directory contains the en (English from the ISO 639-1 standard) sub-directory by default. Each sub-directory within the lang/ directory corresponds to a difference locale; the...
…e task. Like when we define routes in Laravel, it would be cumbersome to have to create a new function in the global scope every time we wanted to define a new route. Another use of anonymous functions is to pass them as function arguments. For...
I use KeePass to manage my personal passwords on my computer. I’ve used it without incident for quite a while, but that streak recently came to an end after having to completely reinstall Windows 8.1 after a hard drive failure (luckily I do manage...
…value for us. Let's start by changing the contents of our app/Modifiers/Compact.php file to the following: The important changes of this refactor are including the Statamic\Facades\Antlers class at the top of the file, and the changes to the map...