Showing 10 of 1,090 results.

The Function | Laravel and Kint Debugging

Looking through the issue some more today, I decided to write a new modify one of Kint's functions to work really nice with Laravel. Add this function to some helpers file, or a file that is accessed throughout your application: 1 if ( !...

Laravel 5 Message Bags: Retrieving the First Message With first

…ll the first method will return the first message in the MessageBag instance. If there are no messages stored within the message bag, the first method will return an empty string. The first method also accepts a $format parameter, which allows...

An Introduction to Laravel Message Bags

The Illuminate\Suport\MessageBag class is an elaborate key/value storage system for storing different types of messages. It it also allows developers to specify a format which is used when returning the messages. The format makes it incredibly...

hasErrorOnLine | The Document Parser

Tests if an error matching the provided properties exists on a specific line. Argument Description $line The line to check. $type The error type to check for. $context The error context. 1 <?php 2 3 use Stillat \ BladeParser \ Errors \ ErrorType ;...

Laravel Artisan Route Command: The route:list Command

…table (shortcut to --reverse ). None --sort The column to sort by. Accepted values are host , method , uri , name, action or middleware . uri The following examples demonstrate the effects of the various different options. Filtering the routes by...

An Introduction to Laravel View Error Bags

…ionality is facilitated by the Illuminate\View\Middleware\ShareErrorsFromSession middleware. The ViewErrorBag instance that is shared with views is given the name errors . Interacting with the ViewErrorBag instance should look familiar to most...

Laravel 5: Generating CSRF Hidden HTML Fields With csrf_field

The csrf_field function can be used to generate a hidden HTML element containing the value of the CSRF token. These tokens can help to prevent cross-site request forgeries.The signature of the csrf_field function is: 1 function csrf_field ( ) ;For...

The is:between Filter | The "is" Filters

…d input (input with either commas or quotes): 1 {{ meerkat : responses filter = " is:between($myDates) " }} 2 3 {{ comments }} 4 <!-- Render your comment thread here. --> 5 {{ /comments }} 6 7 {{ /meerkat : responses }} In the meerkat/filters.php...

Filter Search