Showing 10 of 1,090 results.

Laravel Collection Public API: unique

…ring 'A' (length=1) 6 2 => string 'b' (length=1) 7 3 => string 'c' (length=1) 8 4 => int 1 9 6 => int 2 10 7 => int 3 The following code sample demonstrates how to use the unique method to get all the unique items in a collection based on a given...

16. Limitation of Liability. | License

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,...

Laravel 5: Redirecting Users to the Previous Page With back

The back helper function is used to create a redirect response to the user's previous location. It defines two parameters which can be used to control the status code and headers of the response. An integer argument can be supplied for the $status...

16. Limitation of Liability. | License

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,...

Creating the Tag Method | Building a Simple Statamic Request Addon

…able to get the value of input into the tag's method body. Luckily, Statamic has made this really simple, you can read about it more in the official documentation Working with Input . However, the basics is that the Tags base class provides us a...

An Introduction to Filter Expressions | Basic Filtering

…those comments that are published (as filtered by the is:published filter). If you've developed a custom filter that is computationally expensive, consider using simpler filters first to reduce the total number of comments the expensive filter...

Laravel 5: Ensuring a Value is an Array With wrap

…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 ) { 7...

Filter Search