Showing 10 of 2,055 results.

Replacing the Core Blade Compiler | Blade Compiler

Replacing the core Laravel Blade compiler entirely is not recommended, mainly due to the high likelihood of undesirable/unpredictable behavior when interacting with third-party libraries and Laravel itself. The main issues likely to arise are...

Laravel Artisan General Command: The tinker Command

…the interactive shell, supply them as arguments to the tinker command (they will be passed to the command's include input). The include parameter is defined as an array so it allows for multiple files to be loaded. The following example...

Specifying a Locale | Laravel 5: String Translation Public API

By default, the get method will look for the translation lines using the locale specified as the default with the translation service. However, we can specify a locale by supplying an argument for the $locale parameter. For the following example,...

all | The Laravel Framework Console Kernel

The all method is used to get all of the commands that have been registered with the console application. The commands will be returned as an array with the command name as the key and the command's class instance as the value. This method will...

Laravel String Helper Function: length

The length helper method simply returns the length of the given $value , using PHP's internal character encoding. The signature for the length helper method is: length($value) 1 use Illuminate \ Support \ Str ; 2 3 // 5 4 echo Str :: length ( '...

Rendering Content for the Search Index | Index Configuration

The documentation search provider utilizes Antlers templates to provide data to the search indexer. Doing so dramatically simplifies the process of splitting entries into documents based on headings, especially for more complicated fieldtypes like...

Laravel MessageBag Public API: jsonSerialize

The jsonSeralize method internally returns the value of the toArray method. This method exists to implement PHP's JsonSerializable interface, which allows developers to customize how a class is represented when using the json_encode function. 1...