Showing 10 of 2,142 results.

Laravel Artisan Tinker: The history Command

The history command can be used to retrieve information about the commands have been previously entered in the Tinker REPL session. By using its various options, you can quickly search and find any history item, replay it and even save it to a...

Soft Deleted Comments

One thing to be aware of when building the templates is that Meerkat add-ons can "soft delete" a comment; this means that the comment will still exist. By default, Meerkat will not include these comments when using the {{ meerkat:responses }}...

Laravel Application Helper: abort_if

abort_if($boolean, $code, $message = '', array $headers) The abort_if helper function performs the same basic function as the abort helper function (discussed in the Laravel Application Helper: abort article). The only difference is that the...

Laravel Collection Public API: pull

pull($key, $default = null) The pull method will remove an item from the collection while 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....

CategoriesFilter | The Statamic Add-on Roundup

The CategoriesFilter add-on is simply a custom Statamic Collection Filter that is really good at figuring out how articles on the site are related to one another based on their category. This is made simpler by the fact that I am limiting each...

Creating a Facade Alias | Laravel 5 Facades

Creating a facade alias is completely optional. Package developers often include the following steps in their package installation instructions, but it is not required for a facade to work. In the config/app.php file, there is an aliases...

The "thread" Filters

The thread filters allow you to filter comments based on whether or not the thread they are attached to exists in a list of provided identifiers. Thread identifiers are the ids of your Statamic pages, collection entries, etc. The thread filters...

Laravel Artisan Migration Command: The migrate:install Command

The migrate:install command is used to create the migrations database table. It defines only one optional parameter database . The database option can be used to specify the database connection to use when running the migrations. By default this...