Global array_flatten Helper Function | Laravel 5: Reducing a Multi-Dimensional Array to a Single Dimension Losing Keys With flatten
The array_flatten function is a shortcut to calling Arr::flatten . This function is declared in the global namespace.
Showing 10 of 1,322 results.
The array_flatten function is a shortcut to calling Arr::flatten . This function is declared in the global namespace.
Most Visual Studio Code formatting settings will apply to the Antlers formatter. For a complete list of all HTML formatting options provided by Visual Studio Code check out their documentation at...
Returns all directives within the workspace. Returns all directives from a source document. Some directive pairs, such as the @php / @endphp and @verbatim / @endverbatim pairs will not result in an instance of DirectiveNode , as they are handled...
The dd function is a debug utility that will display useful information about the objects or values supplied. This function will also prevent further execution of the script; it will dump the values of the supplied arguments and die (exit the...
Because Tidal is distributed as a starter kit there is no automated upgrade process. If new versions of Tidal release improvements or features you'd like to use, you will need to copy/modify the relevant files.
Registers a handler for custom directives. This method has the same behavior as the Illuminate\View\Compilers\BladeCompiler::directive method. You do not need to manually call this method to sync compiler information if you use the default...
A common design pattern when building Statamic sites is to use fieldsets to create reusable fields across different collections, forms, or pages. Additionally, it is also not uncommon to see specific partials created to display these fieldsets....
Social Media Kit offers many different configuration options, aimed at helping fine tune the installation to meet your projects needs. After installation, you should see the following configuration files within your site's...
The mapToGroups method is similar to the mapToDictionary method, in that the mapToGroups method allows you take a collection of data and reduce it such that the final result is a collection of key/value pairs. The resulting value for each key may...
In this guide, we will be integrating Meerkat into the Cool Writings Statamic starter kit. To get a sense of what we are going to build, we are going to add a comment section the article page: We will start by modifying the...