Showing 10 of 1,204 results.

Laravel 5: Creating Combinations of Elements With crossJoin

…tion crossJoin ( 2 ... $ arrays 3 ) ; If you are unfamiliar with the ...$arrays syntax, this is PHP's variable-length argument syntax. It allows developers to accept any number of arguments; these will be passed to the inner function via the...

Laravel and Kint Debugging

So, a while ago I wrote this post about working with Laravel and Kint. It works, but it can be a pain to manage through composer updates (losing your lock file, whatever happens), Laravel upgrades, it doesn't matter. The problem is that sometimes...

An Introduction to Laravel Message Bags

…tions. The following classes extend, implement, or make use of the MessageProvider interface by default: Class Description Illuminate\Contracts\Validation\ ValidationException The ValidationException is often thrown when a validation error occurs...

Laravel Artisan Route Command: The route:clear Command

The route:clear command is used to clear any previously generated route cache files. It does this by removing the bootstrap/cache/routes.php cache file. It defines no parameters or options can can be called like so: 1 # Clear the route cache file....

Laravel Artisan Route Command: The route:list Command

…he exact table entries will depend on the registered routes). The routes table can be filtered by using the various different options that the command defines. The following table lists and describes each of the various options the command...

Laravel ViewErrorBag Public API: hasBag

…' MessageBag instance. 23 $ viewErrorBag -> put ( ' payments ' , new MessageBag ) ; 24 25 // Check again if the 'payments' MessageBag instance 26 // exists. 27 // 28 // true 29 $ doesExist = $ viewErrorBag -> hasBag ( ' payments ' ) ;This article...

Laravel Security Helper Function: e for HTML Entities

…tly valid JavaScript code would be sent to the browser. Since browsers are overly happy to execute any JavaScript included in the document, any forum visitor would see an alert box with hello everyone every time a page was loaded that displayed...