Showing 10 of 2,145 results.

Configuring Favicon Sizes | Favicon Configuration

Additional favicon sizes can be managed within your site's site_essentials/favicons.php configuration file. All favicons must have the following properties: rel, : Added to the output link tag's, rel, attribute, format, : The image format to...

Implementing C# Events

A common requirement when designing and implementing software is the ability to respond to certain code conditions, or at key points in an application's execution lifecycle. These conditions and lifecycle points can be thought of as events , where...

Laravel Collection Public API: splice

splice($offset, $length = null, $replacement = []) The splice method is a versatile method; it is often used to remove a portion of a collection and return the removed section. It defines three parameters: $offset , $length and $replacement . The...

Getting the Environment Name in Laravel 4

Environments in Laravel 4 are a great way to develop your application and have it respond to the environment it is running in. For example, most applications have two environments that they will ever run in: local and production . You can think of...

Laravel Collection Public API: slice

slice($offset, $length = null, $preserveKeys = false) The slice method is used to return a slice, or portion of the collection starting at the given $offset . The $offset tells the slice method where to begin when creating the collection. For...

Resolving the Class Behind a Facade | Laravel 5 Facades

It is possible to quickly resolve the class behind a facade. Facades expose a public method getFacadeRoot which will return the instance of the underlying object the facade is forwarding method calls to. It is convenient that getFacadeRoot...

Configuration Overview

Configuration is currently handled via PHP configuration values. Once Meerkat has been installed in your Statamic site, a meerkat directory will created within your site's config directory with all the relevant configuration files after the site...