Showing 10 of 1,322 results.

Laravel MessageBag Public API: __toString

…code executes, the $stringValue variable would contain the following value: 1 {"first":["The first message"]}This article is the start of a mini-series about Laravel's ErrorMessageBag component. Click through the rest of the articles to continue...

Laravel Collection Public API: prepend

prepend($value, $key = null) The prepend method will add an a given $value to the beginning of the collection. You can also supply an optional $key that will be used as the key for the new $value when adding an item to the beginning of an...

Laravel Collection Public API: shift

shift The shift method is used to remove the first item from the collection and return its value. The shift method modifies the collection instance. The following code example shows how to use the shift method: 1 <?php 2 3 use Illuminate \ Support...

Custom Component Tags

…n, such as parameters, tag names, namespaces, etc. With our custom component tag prefixes, all of the following would be equivalent: 1 < a-alert :$message /> 2 < b-alert :$message /> 3 < c-alert :$message /> 4 < x-alert :$message />To learn how...

PHP Slow Response Times

…path_cache_size PHP setting. This setting comes in handy in composer-heavy applications. This setting basically makes it so PHP doesn't have to look up file paths on every request. For more information on this setting, and how to tune it consider...

Filter Search