Showing 10 of 2,044 results.

Creating the Asset Container | Introduction & Installation

…9 | Asset Container 10 |-------------------------------------------------------------------------- 11 | 12 | This option defines the Statamic asset container utilized by the Social 13 | Media Image Kit for image storage. Once this option is set,...

Best Practices for Securing Your Development Projects

…crimes increased by 38% in 2022 as compared to the previous year. Therefore, it's important for developers to take proactive measures in order to secure their development projects. Not taking cybersecurity seriously can cost your development firm...

Laravel Array Helper Function: array_dot

The dot helper method will take a multi-dimensional array and return a new associative array where the keys are built from all the nested keys, separated with the . character. The signature for the dot helper method is: dot($array, $prepend = '')...

API Endpoints | Advanced Reply Forms

…points static object contains the API endpoints that you can submit to from your site. The default endpoints are: Endpoint Description SubmitComment The API endpoint to POST comment replies to. You might use the endpoints like so (the following...

Ordering Comments | Sorting Comment Threads

…esponses order = " id,desc " }} 2 3 {{ comments }} 4 <!-- Render the comment thread here. --> 5 {{ /comments }} 6 7 {{ /meerkat : responses }} The syntax for specifying sort order is: 1 <PROPERTY_NAME>,<DIRECTION> The following directions are...

Getting an Input Element's Value | Laravel 4: Getting User Input

Inside of our route, we can use the get method on the Input facade to get our input, and it really is as easy as doing this: 1 <?php 2 3 Route :: post ( ' user/create ' , function ( ) 4 { 5 // Get the user's first and last name. 6 $ firstName =...

HTTP Equivalent | General Metadata

The httpEquiv method queues a <meta http-equiv="..." content="..."> tag. 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 Metadata :: general ( ) -> httpEquiv ( ' refresh ' , ' 30 ' ) ;