Showing 10 of 2,133 results.

Laravel Collection Public API: isEmpty

isEmpty The isEmpty can be used to determine if the collection has items or not. If the collection has no items, true will be returned, otherwise false will be returned. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 // Create a new...

withCoreValidators | Validating Documents

Includes the core validators on the internal BladeValidator instance. If a BladeValidator instance does not already exist on the document, a new one will be created automatically via the ValidatorFactory::makeBladeValidator() factory method. Under...

Laravel Array Helper Function: array_forget

forget(&$array, $keys) The forget helper method removes items from the given $array . The specified keys are express in dot notation.This function affects the original $array . Assuming an array is defined as follows: 1 <?php 2 3 use Illuminate \...

Laravel String Helper Function: randomBytes

The randomBytes helper method is used to generate a string of bytes of the given $length . The results of the randomBytes are more random than the results of the random method. randomBytes requires the OpenSSL extension extension for PHP version 5...

Unpaired Conditions | The Validate Command

Class : UnpairedConditionValidator The unpaired condition validator will emit validation errors if any condition directives ( if , elseif , else , etc.) are not paired with another directive. The following template: 1 @if ( $ this ) 2 3 @elseif (...