Showing 10 of 2,133 results.

Laravel Artisan Queue Command: The queue:restart Command

The queue:restart command can be used to indicate to all daemon queue workers that they should restart. This command simply instructs the queue works to restart after they are done working on their current job. This command defines no options or...

Configuring the Blueprint

The Meerkat blueprint is created automatically for you when Meerkat is installed, and the site reloaded or accessed for the first time. This blueprint can be found in the following directory (from the root of your Statamic site): 1 resources/ 2...

Replying to Comments | Managing Comments

Comments may be replied to from the Control Panel by selecting the "Reply" option below the comment's content. An inline comment reply form will appear, allowing you to reply directly from the Control Panel. The currently authenticated user...

Laravel 5: Randomizing Element Order With shuffle

…le method can be used to shuffle an input array and then returns the results. This method takes advantage of PHP's shuffle method; therefore, it is not suitable for cryptographic purposes.The signature of the shuffle method is: 1 public static...

Example Use | Laravel 5.5 String Helper Method: kebab

Here are a few examples with the result above the function call in comments: 1 use Illuminate \ Support \ Str ; 2 3 // my-words 4 echo Str :: kebab ( ' MyWords ' ) ; 5 6 // m-y-w-o-r-d-s 7 echo Str :: kebab ( ' MYWORDS ' ) ; 8 9 // The kebab...

Compiling Documents

We can compile a document's echo statements, directives, and components using the compile method. Internally, the document will create a compiler instance by invoking the CompilerFactory::makeCompiler() factory method for us. By default, the...

Registering Default Metadata | Overview

In the previous code sample, we saw a call to the withDefaults method. This method will register a number of common metadata entries for us. Specifically, it is equivalent to the following: 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \...

getAllParentNodesForNode | Querying Document Nodes

Retrieves all parent nodes for the provided node. Argument Description $node The node. 1 <?php 2 3 use Stillat \ BladeParser \ Nodes \ AbstractNode ; 4 use Stillat \ BladeParser \ Nodes \ NodeCollection ; 5 6 public function...

Keywords | General Metadata

The keywords method queues a <meta name="keywords" content="..."> tag. By default it binds to the $meta_keywords variable. 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 // Adjusting the returned variable. 6...

Reply Forms

Most sites provide the ability for visitors to reply to one-anothers comments. Meerkat supports this out of the box, but might be one of the most involved aspects of integrating Meerkat in your site's theme. When Meerkat generates the opening tags...