Showing 10 of 2,055 results.

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 ' ) ;

Generating Images for a Single Entry | Generating Images

To regenerate images for a single entry using the command line we can pass the ID of the entry as the first argument to the generate-images command: 1 php artisan social-media-image-kit:generate-images the-id-here --regen