Showing 7 of 1,975 result(s)
By default, the Blade formatter will not apply class string emulation feature to the following list of directives: if, unless, elseif, for, forelse, foreach If you'd like to modify this list you may add a classStrings configuration object to your...
The Blade formatter will format JavaScript inside Alpine.js directives by default (starting with 1.6.0). This can be disabled by adding a formatJsAttributes configuration item to your .blade.format.json : In .format.blade.json 1 { 2...
The add helper method adds the given $key and $value to an $array if the $key doesn't already exist within the given $array . The signature for the add helper method is: add($array, $key, $value) Consider the following code snippet: the end result...
…unction can be used to retrieve the path the config directory. It can also be used to construct paths relative to the configuration directory by supplying a $path . The following examples will assume that the Laravel application is installed in...
…unction can be used to retrieve the path to the database directory. It can also be used to construct paths relative to the database directory by supplying a $path . The following examples will assume that the Laravel application is installed in...
In order to supply extra headers we must also provide an argument for $status and then supply an argument for $headers :
policy($class) The policy helper function can be used to retrieve a policy (a policy class can be any valid PHP class) instance for a given $class . The $class can be either a string or an object instance. If no policies for the given $class have...