Showing 7 of 1,975 result(s)
Class : NoArgumentsValidator The no directive arguments validator emits a validation error when directive's that should not contain arguments have arguments in the template. The following template: 1 @ endphp ($args) will emit the following...
The singular helper method is the logical opposite to the plural method: it will attempt to take a given $value and return the singular form of that word. The internal mechanisms are similar to the plural method. The signature for the singular...
The divide helper method will take the given $array and create two new arrays. The first array will be all of the keys from the original $array and the second array will be all of the values. The final result would be:The array_divide function is...
app($make = null, $parameters = []) The app function provides access to the Illuminate\Container\Container instance. Because Container is a singleton, any call to app() will return the same Container instance. The app function can also be used to...
…path to the Laravel application directory (which is named app by default). The exact value returned by calling app_path is dependent on the specific folder structure where the application is residing. An example path returned might look like...
where($array, callable $callback) The where helper method is functionally similar to the pluck method, in that both take a source $array and filter it to produce a smaller array. It works by iterating over each element in the $array and executing...
decrypt($value) The decrypt helper function can be used to decrypt a given $value . The function resolves the configured Illuminate\Contracts\Encryption\Encrypter implementation from the Service Container and then calls the decrypt method on the...