Showing 10 of 2,055 results.

An Introduction to Laravel's Collection Public API

The Collection class exposes a generous public API, consisting of, at the time of this writing, 64 public methods. The Collection API exposes methods for retrieving values from a collection, transforming the underlying array, pagination and simple...

Laravel Translation Helper Function: trans

…o an array key within the group file. It also accepts an array of replacements (which are passed through the $parameters array parameter) and a $locale parameter, which can be used to specify the desired locale. The signature for the trans helper...

Laravel Collection Static API: make

make($items = []) The make static method creates a new instance of a collection with the provided $items (assuming that the provided $items is in itself not an instance of Collection ). The following code sample highlights the usage of the make...

Component Shorthand Variables | The Validate Command

Class : ComponentShorthandVariableParameterValidator The component shorthand variables validator will check for potential typos or unexpected values when working with shorthand variable syntax. The following template: 1 < x-profile $:message /> <...

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...

Laravel String Helper Function: ucfirst

The ucfirst helper method is used to uppercase the first letter of a string. It defines only one parameter— $string —which is the string that should have its first letter upper cased. This helper method differs from PHP's ucfirst function because...