Search

Showing 7 of 1,975 result(s)

/blade-parser/v1/workspaces#content-getrootswitchstatements

Returns all the direct switch statements. This method automatically performs structural analysis. Only @switch statements that appear at the root of a document, without any parent nodes, will be returned. 1 <?php 2   3 use...

/blade-parser/v1/workspaces#content-getrootconditions

Returns all the root workspace conditions. This method automatically performs structural analysis. Only structures that appear at the root of the document, without any parent node, will be returned. 1 <?php 2   3 use Illuminate\Support\Collection...

/blade-parser/v1/workspaces#content-getrootforelse

Returns the direct for-else blocks. This method automatically performs structural analysis. Only nodes that appear at the root of a document, without any parent nodes, will be returned. 1 <?php 2   3 use Illuminate\Support\Collection ; 4   5...

/blade-parser/v1/formatting-configuration#content-preventing-attribute-content-from-being-wrapped-in-newlines

Some attribute contents are sensitive to newlines, such as Alpine's x-data . To help address this in a general way, the Blade formatter allows you to configure a safeWrappingJsAttributes configuration property within your .blade.format.json file....

/blade-parser/v1/formatting-configuration#content-modifying-prettier-javascript-options

You can change which prettier options are applied to attribute content by adding a attributeJsOptions configuration object to your .blade.format.json file. For example, to increase the print width and disable the insertion of semicolons, you could...

/blog/2016/11/16/laravel-string-helper-function-upper

The upper method is the opposite of the lower method and it takes a given value and returns the upper case variant. This method is useful when doing string comparisons. The signature for the upper helper method is: upper($value)

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

…retrieve the path to the directory the Laravel application is installed in. It can also be used to construct paths relative to the base path by supplying a $path . The following examples will assume that the Laravel application is installed in...