Showing 10 of 1,280 results.

Laravel 5: Accessing the Cache System With cache

The cache helper function can be used as a convenient way to access the Laravel cache store, retrieve existing items from the cache, and to place new items in the cache. The behavior of the cache helper function is determined by the number and...

Laravel Artisan Custom Styles: Custom Progress Bar Styles

There are extensive customizations that can be made to console progress bars. The progress bars that are displayed in Laravel commands are an instance of Symfony\Component\Console\Helper\ProgressBar class. Progress bars also inherit their styles...

Laravel 4: Working With Checkboxes and Input

…e of a Blade view, a checkbox can be created using the Form class: 1 {{ Form::checkbox('my_checkbox', '1') }} In the above code sample, my_checkbox is the name of the input element and 1 is the value the checkbox was given. This would generate...

Laravel URL Helper Function: route

…) ; We can generate a simple URL to it using the following example: 1 <?php 2 3 $ url = route ( ' profile ' ) ; The resulting URL would be look like this (the actual URL returned will change depending on the route name and the domain name): 1...

Laravel 5 Macros: Creating Class Based Macros with Mixins

In version 5.4, Laravel added the concept of "macro mixins": a way to define and group related macro methods and utility functions into a class and then inject, or mix in all of the class methods as macro methods to any class that utilizes the...

Laravel 5: Creating Combinations of Elements With crossJoin

…ke a look at a different example where we use the crossJoin method to generate browser test payloads. The goal here is to take an array of input element names and an array of common XSS payloads and create a testing payload that we can then use...

Laravel Array Helper Function: array_pull

pull(&$array, $key, $default = null) The pull helper method is similar to the get (covered in the Laravel Array Helper Function: array_get article) method in that it will return a value for the given $key in the $array (or the $default , if it is...

Laravel Application Helper Function: view

…ory ) or an implementation instance of Illuminate\Contracts\View\View (which by default would be an instance of Illuminate\View\View ). The examples in this section will make use of the default welcome.blade.php example view file that ships with...

Laravel 5: Generating URLs to Named Routes With route

…; 5 } 6 ] ) ; We can generate a simple URL to it using the following example: 1 $ url = route ( ' profile ' ) ; The resulting URL would be look like this (the actual URL returned will change depending on the route name and the domain name): 1...

Laravel Array Helper Function: array_only

The only helper method is the logical opposite of the except (discussed in the article Laravel Array Helper Function: array_except ) method. The signature for the only helper method is: only($array, $keys) Assuming that the $_POST super-global...

Filter Search