Showing 10 of 1,322 results.

Laravel URL Helper Function: action

…troller@sayHello ' , [ ' name ' => ' Jim ' ] ) ; would return the following URL: 1 http://laravel.artisan/sayHello/Jim The exact URL that is generated will depend on the current domain of the site. Notice that when the action function was called,...

Laravel 5: Retrieving Object Values With object_get

…department.name ' 4 ) ; The value of $departmentName would then be Marketing . Attempting to retrieve the department's address would return NULL : 1 // NULL 2 $ departmentAddress = object_get ( 3 $ sampleObject , 4 ' department.address ' 5 ) ; Or...

Switch Statement Validator | The Validate Command

Class : SwitchValidator The switch statement validator checks for common issues within Blade switch statements, such as: No, @case, directives were found within the, @switch, block, A, @case, statement is missing a, @break, A, @case, statement has...

Component Shorthand Variables | The Validate Command

…d values when working with shorthand variable syntax. The following template: 1 < x-profile $:message /> < x-profile :$message = " message " /> produces the following validation messages: 1 Potential typo in shorthand parameter variable...

resolveStructures | Document Structures

Resolves structures within the document, such as directive pairs. Structural analysis can only be performed once on a Document instance. If changes have been made to the node structure, you are encouraged to call the toDocument() method to...

getRootStructures | Document Structures

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

getRootSwitchStatements | Document Structures

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

getRootForElse | Document Structures

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