Search

Showing 7 of 2,041 result(s)

/blog/2021/12/12/creating-a-content-reaction-system-with-statamic-3-and-antlers

Throughout this article we will explore creating a system that will allow site visitors to leave "reactions" on Statamic 3 entries. Once complete, users will be able to add the following reactions to entries: 👍 Like, 😍 Love, 😯 Surprised, 🤔...

/blog/2023/11/30/troubleshooting-a-statamic-illegal-offset-type-error-when-viewing-the-control-panel

On a recent Statamic project I was continuously receiving the following error when attempting to view a collection's entries within the Statamic control panel: Digging through the error's vendor frames I ultimately landed on the following line...

/blog/2018/04/22/laravel-5-collections-determining-if-a-collection-contains-an-element-with-contains#content-using-contains-with-higher-order-messages

The contains method can also be used with higher order messaging, which allows us to invoke collection methods and access properties on objects using PHP's property accessors syntax. In the following example, we will modify the User class we...

/blog/2021/11/07/creating-a-statamic-compact-modifier

Throughout this article we will be creating a Statamic modifier that provides similar functionality to PHP's compact function. This function will create an array from the provided variables by name. As a refresher, let's take a look at how the...

/blog/2016/11/21/laravel-url-helper-function-action

action($name, $parameters = [], $absolute = true) The action helper function can be used to generate a URL to a controller action, which is supplied as an argument to the $name parameter. If the controller action requires or accepts parameters...

/blog/2020/12/29/creating-a-custom-statamic-500-server-error-page#content-working-with-projects-like-tailwind-css

If your project is utilizing tools like TailWind CSS that produce a production CSS build based on the classes your template files actually use, you may run into situations where some classes used on your custom error pages are not included in the...

/blog/2016/11/29/laravel-collection-public-api-implode

implode($value, $glue = null) The implode method will combine the items of the collection together. The Collection 's implode method behaves differently than PHP's implode function in that it can operate on arrays of primitive data types as well...