Showing 10 of 1,089 results.

Example Use | Laravel 5.5 String Helper Method: kebab

…sing the '-' as the delimiter. The following example 11 // would produce the same output as the kebab method: 12 echo Str :: snake ( ' MYWORDS ' , ' - ' ) ; 13 14 // this_is_-pretty-cool 15 echo Str :: kebab ( ' this_is_PrettyCool ' ) ; The kebab...

Laravel Array Helper Function: array_pull

pull(&$array, $key, $default = null) The pull helper method is similar to the get (covered in the Laravel Array Helper Function: array_get article) method in that it will return a value for the given $key in the $array (or the $default , if it is...

Laravel Application Helper Function: view

…ew (which by default would be an instance of Illuminate\View\View ). The examples in this section will make use of the default welcome.blade.php example view file that ships with new Laravel installations. If no arguments are supplied to the view...

Laravel Array Helper Function: array_build

The $build helper method will create a new array with the original array's key/value pairs after they have been run through the $callback function. The $callback function should return an array with the new key and value. The signature for the...

Laravel 5.5 String Helper Method: finish

The finish helper method will make sure that a given $value always ends with exactly one occurrence of the $cap . This helper method is incredibly useful when construction URIs or file paths. The $cap can be any string of characters, and does not...

Laravel Helper Function: info

info($message, $context = []) The info helper will write an information entry into Laravel's log files. It allows a $message to be set, as well as an optional $context (which is an array of data). While the $context must be an array, the actual...

Laravel 5.5 String Helper Method: snake

The snake helper method replaces all uppercase letters within the string with the lower cased variant prefixed with the given $delimiter . The only exception to this rule is that if the first character of the string is capitalized, it will be...

Registering Third-party Metadata Providers | Overview

The metadata manager also supports the concept of "metadata providers." These providers provide a simple way for external code to register multiple meta tags with Site Essential's metadata manager. Metadata providers are added by using the...

Laravel Helper Function: encrypt

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

Laravel Translation Helper Function: trans

The trans helper function is used to return the translation for the given key. It defines a $key parameter which corresponds to an array key within the group file. It also accepts an array of replacements (which are passed through the $parameters...

Filter Search