Showing 10 of 1,090 results.

Laravel ViewErrorBag Public API: count

…ted earlier. 27 $ viewErrorBag -> put ( ' default ' , $ messageBag ) ; 28 29 // Get the count from $viewErrorBag 30 // 31 // 1 32 $ messageCount = count ( $ viewErrorBag ) ; As can be seen in the comments in the above example, the count method...

Template IDE Hints

…nd other advanced features. The extension is capable of determining which blueprint fields to show in suggestions based on common collection configurations, but there are some scenarios where explicitly specifying them can improve your...

Laravel Facades Part Three: Creating Custom Facades

…php namespace App \ Http \ Controllers ; 2 3 use Math ; 4 5 class TestController extends Controller { 6 7 public function getindex ( ) 8 { 9 $ result = Math :: add ( 1 , 2 ) ; 10 } 11 12 }Creating a facade alias is completely optional. Package...

Laravel Artisan Command Input and Command Signatures

…es. Options are not necessarily required, and can be used as a sort of "flag" to change the behavior of the command's execution. Options must start with the -- (double hyphen) prefix. Parameters and options are defined in the command's $signature...