Showing 10 of 1,322 results.

Available Variables | Responses and Replies

…uthor.name }} The name of the comment's author. {{ author.email }} The email address of the comment's author. {{ id }} The internal ID of the comment. {{ date }} A Carbon date instance representing when the comment was submitted. {{ has_replies...

Recursive Comments (Nested Replies) | Responses and Replies

Displaying comments recursively, or a nested list, is a common visual pattern on web pages. This feature relies on the following Statamic pull request: https://github.com/statamic/cms/pull/8421 . Until this is generally available, you will need to...

Laravel 5 Macros: Creating Callback Macros

The first method of creating macros we will explore is the callback function macro. These macros are added to the various classes directly by calling the macro method on the macroable class and then supplying the callback function that will be...

Laravel 5 Macros

…reated by using the "\Illuminate\Support\Traits\Macroable" trait. The following table lists all of the default framework that allow for extension via macro methods: Class Illuminate\Auth\RequestGuard Illuminate\Auth\SessionGuard...

Laravel Collection Public API: whereLoose

…t filters the collection item's by checking that the given $key has some value equal to the provided $value . The whereLoose method does not check to make sure the item's value and the provided $value have the same data type. This is the...

Creating a Custom Statamic 500 Server Error Page: Part Two

This is a follow up article to the Creating a Custom Statamic 500 Server Error Page article. In the previous article, we created a generic server error page that would display the same information regardless of what type of error was raised within...