Showing 10 of 1,322 results.

Error Contexts | Parser Errors

The following error contexts are available: Error Context Code Echo 001 Comment 002 Verbatim 003 Directive Arguments 004 Blade PHP Block 005 Component Tag 006 Raw Echo 007 Triple Echo 008 PHP Short Open Tag ( <?= ) 009 PHP Open Tag ( <?php ) 010...

Procedures | Procedure vs. Function vs. Method vs. ?

Procedures are sort of like functions, in the fact that they are sort of a language copy and paste feature. The defining difference is that a procedure does not return a value. You can thing of it kind of like this: a function determines how...

Laravel Artisan Tinker: The dump Command

The dump command can be used to display information about a particular variable or class instance within the console window. It will display the information using Symfony's VarDumper console component: 1 PHP Fatal error: Class 'User' not found in...

Getting the Environment Name in Laravel 4

…and production . You can think of the local environment as your development machine and the production environment is the server where your end users access the application. Using environments, our Laravel 4 application can automatically change...

Laravel ViewErrorBag Public API: count

…eBag ) ; 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 only operates on the default MessageBag instance. Because of...

Laravel String Helper Functions

…pecifically languages that have a robust object-oriented approach to the provided data types. Operations such as checking if a particular string contains a substring, or if a string starts or ends with another string are not impossible, nor are...

Laravel 5 Collections: Randomizing Element Order With shuffle

The shuffle method is used to rearrange the items of the array in a random distribution. The shuffle method will return a new collection and will not modify the original collection instance.1 public function shuffle ( 2 $ seed = null 3 ) ;The...

Filter Search