Showing 10 of 2,055 results.

Laravel Helper Function: config

config($key = null, $default = null) The config helper function is a versatile function. If the supplied $key and $default value are both null, such as in the following method call: 1 <?php 2 3 // Calling the `config` function without any...

Laravel Artisan Generator Command: The make:request Command

The make:request command can be used to generate new request validation request classes. The command accepts a name for the newly created request class. The name will be used as the name of the class and the file. The following example...

Markdown Tools | The Statamic Add-on Roundup

Markdown Tools for Statamic is another freely available add-on (you can find it at https://github.com/JohnathonKoster/statamic-markdown-tools ). It allows site admins to handle text replacements across the entire site (for example, to handle the...

PostImage | The Statamic Add-on Roundup

You may have noticed that there are many different sizes of "post images" on this site. One of the first versions of the site that I built used an image with the same dimensions for each place a blog post might appear. For example, on the home...

RainFrog | The Statamic Add-on Roundup

…I have not specified them for any given post: 1 < meta itemprop = " description " content = " {{ rain_frog : keywords }} " > or a description like so: 1 < meta itemprop = " description " content = " {{ rain_frog : description }} " > The keywords...

Laravel Array Helper Function: array_pull

pull(&$array, $key, $default = null) The pull helper method is similar to the get (covered in the Laravel Array Helper Function: array_get article) method in that it will return a value for the given $key in the $array (or the $default , if it is...

Specifying Custom Directive Names | The Document Parser

By default, the document parser does not know any custom directives available within an application. This decision was made to help keep the parser as standalone and reusable as possible. However, it is simple to teach the parser about custom...