Showing 10 of 1,204 results.

Example Use | Laravel 5: Excluding Items From an Array With except

…rr ; 2 3 $ inputData = Arr :: except ( $ _POST , ' password ' ) ; $inputData would then contain the following items: 1 array { 2 [ " first_name " ] " John " 3 [ " last_name " ] " Doe " 4 } When passing a single item, such as password , for the...

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:...

Filter Search