Showing 10 of 1,322 results.

Command Interoperability and Laravel Artisan Applications

The typical Artisan command development workflow involves writing commands that interact with different components of the application or external services; the commands themselves are usually isolated in their scope and generally do not depend on...

Laravel 5: Determining if a Variable Holds a Value With blank

The blank function is used to determine if the provided value contains a value that is not null , or a non empty value. It can be useful to check arguments supplied to functions for values without having to check many different types specifically....

Laravel Collection Public API: shuffle

shuffle The shuffle method is used to rearrange the items of the array in a random distribution. The shuffle method will return a new collection and will not modify the original collection instance. The following code example shows the usage of...

Compiling Custom Components

…ld contain the custom compiled output. If the method returns null , the default component tag compiler will be utilized. If you wish to return  no  output, return an empty string.The following example implements a custom component tag compiler....

Laravel MessageBag Public API: add

…) The add method allows multiple messages to be stored under a given $key as long as the key/message pair is unique. As an example, another message can be supplied for the hello key like so: 1 <?php 2 3 $ messageBag -> add ( ' hello ' , ' This is...

compile | Compiling Workspaces

Compiles all discovered Blade templates within the workspace. Argument Description $outputDirectory Where to store compiled files. 1 <?php 2 3 public function compile ( 4 string $ outputDirectory 5 ) : void ;