Search

Showing 7 of 1,975 result(s)

/blog/2020/12/29/creating-a-custom-statamic-500-server-error-page#content-referencing-public-css-and-javascript-assets

…error page's template. When referencing a public assets in this way we need to be sure to prefix the asset paths with / so that they are resolved relative to the site's domain name: If you have changed the name of your build files, make sure to...

/blog/2014/10/18/thoughts-on-a-guidance-engine#content-page-rankings

Ah, here we go. How would you rank content in such a guidance engine? Well, the content is already heavily curated. Because of that there really wouldn't be too much of a need for pages to obsessively compete with each other (they still would, but...

/blog/2016/11/30/the-laravel-translator#content-setselectormessageselector-selector

The setSelector method sets a Symfony\Component\Translation\MessageSelector instance ( $selector ) for the Translator . The MessageSelector instance is used by the choice and transChoice methods for loading the correct translation message based on...

/blog/2016/12/07/laravel-artisan-custom-styles-custom-progress-bar-styles#content-setbarcharacterchar

The setBarCharacter method is used to change the which character is used to represent which steps have already been completed. On Windows systems this character is = by default. The following examples demonstrate how to change the bar character....

/blog/2018/04/22/laravel-5-collections-determining-if-a-collection-contains-an-element-with-contains#content-considerations-of-the-contains-method

The contains method defines two parameters: $key and $value . The $value parameter has a default value of null , however, the two method calls are not the same: Even though the two examples return true , the second example is functionally not...

/blog/2018/04/22/laravel-5-collections-getting-the-first-collection-element-with-first

The first method is used to get the first item in a collection, or to get the first item in a collection that matches a set of criteria. A $callback can be supplied to return the first item in the collection that matches a given truth test....

/blog/2018/04/22/laravel-5-collections-retrieving-and-removing-an-element-from-a-collection-with-pull

The pull method will remove an item from the collection whilst returning its value. If the item is not in the collection, the optional $default value will be returned. The pull method will modify the original collection.The following example...