Search

Showing 7 of 1,975 result(s)

/blade-parser/v1/formatting-configuration#content-excluding-directives-from-class-string-emulation

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...

/blade-parser/v1/formatting-configuration#content-formatting-javascript-inside-attributes

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...

/blog/2016/11/18/laravel-array-helper-function-array_add

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...

/blog/2016/11/20/laravel-application-helper-config_path

…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...

/blog/2016/11/20/laravel-application-helper-database_path

…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...

/blog/2016/11/20/laravel-application-helper-function-redirect#content-supplying-additional-headers

In order to supply extra headers we must also provide an argument for $status and then supply an argument for $headers :

/blog/2016/11/20/laravel-application-helper-policy

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...