Showing 10 of 1,322 results.

getErrorMessage | Parser Errors

Returns a formatted Blade error messages. Error messages will contain a generated error code, a message indicating the failure as well as information such as the offending line number. 1 <?php 2 3 public function getErrorMessage ( ) : string ;

Updating a Comment | Managing Comments

Comments may be updated from the Control Panel by selected the "Edit" option below the comment's content. An inline comment editor will appear, allowing you to update the comment's content.

Laravel Artisan Tinker: The optimize Command

The optimize command optimizes various aspects to improve the performance of the Laravel application. The command provides two flags. The --force flag can be set to indicate that the compiled class file should be written (by default the compiled...

Setup & Configuration

…for Search Report for Statamic you may run the following command to create your new database table: 1 php artisan migrateBy default, Search Report for Statamic will not log searches made by authenticated users on your site. This can be changed by...

Laravel Helper Function: ASCII

The ascii helper method accepts only one argument: $value . $value should always be a string, or something that can be cast into a string. The function converts a string in the UTF-8 encoding into its ASCII equivalent. This function is useful when...

Laravel Collection Public API: pluck

pluck($value, $key = null) The pluck method is used to retrieve the a list of values from the collection. It defines two parameters: $value and $key . The $value indicates which property should become the value in the resulting collection and the...

BuildResources | The Statamic Add-on Roundup

…ell, any of them that are made available by the site). This command simply fetches the new content from each of these lists and populates specialized collections with content and attribution (the command will analyze the license of each of these...

Gazelle | The Statamic Add-on Roundup

The Gazelle add-on is just a way for Antlers templates to detect if the client has JavaScript enabled or not. It uses a meta redirects to indicate that JavaScript is not enabled. Not a limitation of Statamic, just a curiosity.

Laravel 5 Macros: Creating Class Based Macros with Mixins

…ine and group related macro methods and utility functions into a class and then inject, or mix in all of the class methods as macro methods to any class that utilizes the Illuminate\Support\Traits\Macroable trait. Let's first examine the method...

Filter Search