Showing 10 of 1,280 results.

Laravel String Helper Function: is

The is helper method will indicate if the given $value matches the given $pattern . If the $value is the $pattern or if the $value matches the $pattern , the method will return true , otherwise it returns false . The signature for the is helper...

Laravel Collection Public API: sortByDesc

sortByDesc($callback, $options = SORT_REGULAR) The sortByDesc method operates exactly the same as the sortBy method. The only differences is that the sortByDesc method does not define a $descending parameter. The sortByDesc method internally makes...

Laravel Artisan Vendor Command: The vendor:publish Command

The vendor:publish command is used to publish any assets that are available from third-party vendor packages. It provides a few options to help specifically choose which assets should be published. The following table lists and describes each of...

Laravel Artisan Tinker: The env Command

The env command is used to simply return the name of the current framework environment. The environment name that is returned is set in the .env file (specifically whatever value is set for the APP_ENV entry). This command performs the same action...

Laravel 5 Message Bags: Merging Additional Messages With merge

The merge method is used to combine, or merge , the contents of the MessageBag instance with the provided $messages . The $messages can be any valid array or an object instance that implements the "Illuminate\Contracts\Support\MessageProvider"...

Laravel 5: Encrypting Strings With encrypt

The encrypt helper function can be used to encrypt a given string value. The function resolves the configured "Illuminate\Contracts\Encryption\Encrypter" implementation from the Service Container and then calls the encrypt method on the Encrypter...