Showing 10 of 1,214 results.

Laravel Helper Function: ASCII

The ascii helper method accepts only one argument: $value . $value should always be a string, or something that can be cast into a string. The function converts a string in the UTF-8 encoding into its ASCII equivalent. This function is useful when...

Laravel Collection Public API: pluck

pluck($value, $key = null) The pluck method is used to retrieve the a list of values from the collection. It defines two parameters: $value and $key . The $value indicates which property should become the value in the resulting collection and the...

Request | The Statamic Add-on Roundup

The Request add-on provides a request tag that can be used to get information about the client's request. For example, there was no easy way to determine if a URL query parameter was present; that was the main reason this add-on exists. It is used...

Laravel 4: Working With Checkboxes and Input

…checkbox ' ) === ' 1 ' ) 6 { 7 // Checkbox is checked 8 } 9 else 10 { 11 // Checkbox is not checked 12 } In the above code sample, my_checkbox is the name of the input element and 1 is the value given to the checkbox input.After a user has...

Laravel Artisan Queue Command: The queue:failed Command

The queue:failed command is a simple command that will list all of the queue jobs that have failed. The data for the generated table comes from the failed_jobs database table. This command defines no parameters or options and can be used like so:...

Laravel 5: Ensuring a Value is an Array With wrap

At some point in your PHP adventures, you have either seen, or written code like the following: 1 function checkDomains ( $ domains ) { 2 if ( ! is_array ( $ domains ) ) { 3 $ domains = ( array ) $ domains ; 4 } 5 6 foreach ( $ domains as $ domain...

Filter Search