Showing 10 of 1,322 results.

Laravel Collection Public API: sortBy

sortBy($callback, $options = SORT_REGULAR, $descending = false) The sortBy method is useful and versatile way to sort collections by some key, or by some value returned by a $callback . The $callback can either be a function that defines two...

Disclaimer of Warranty | Licensing

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT...

Laravel String Helper Function: equals

…lementation of the equals helper method has been deprecated in favor of PHP's built in hash_equals function.The equals method has the possibility of leaking length information about the given inputs if the supplied $knownString and $userInput are...

Install Asset Container | Artisan Commands

The install-asset-container Artisan command may be used to create the asset container that will be used by Social Media Image Kit. It can be invoked by running the following command from the root of your project: 1 php artisan...

Laravel Artisan Generator Command: The make:test Command

The make:test command can be used to quickly generate test files for your application. The command accepts a name argument that will be used as the name of the newly created file and generated class. Generated tests are stored in the tests/...

Excluding File Extensions | Formatting

You may disable the Antlers formatter for specific file extensions by providing a list of file extensions in your workspace's settings file. The configuration key to update is antlersLanguageServer.formatterIgnoreExtensions . By default Antlers...

Creating a Custom Statamic 500 Server Error Page

…to this when a catastrophic error occurs: Granted, this is much nicer to look at than the default error page that is often provided by web servers such as Apache or nginx, but it still does not communicate a clear message of what has happened to...

Node.js Errors When Generating Images | Troubleshooting

…s when making changes in the Control Panel, but not when running the Artisan command, ensure that node and Puppeteer are available within your system's PATH environment variable. If you only intend on generating images with the command line, you...

Menu Item Sections | Navigation Menus

…ation can be marked as a "section" by toggling the "Is Section" field within the Statamic Control Panel. When this field is toggled on, the entry or menu item will be rendered as a static menu item. If the menu item is a collection entry,...

Filter Search