Showing 10 of 1,204 results.

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

Example Use | Laravel 5: Ensuring a Value is an Array With wrap

In the introduction of this section, we saw this example code: 1 function checkDomains ( $ domains ) { 2 if ( ! is_array ( $ domains ) ) { 3 $ domains = ( array ) $ domains ; 4 } 5 6 foreach ( $ domains as $ domain ) { 7 // Perform some operation...

Temporary/Ephemeral Links | Custom Metadata Tags

There are some scenarios where it is beneficial to add link/metadata tags from tags or some other application code. When doing so, it is very important to note that any queued link/metadata tags will persist across requests when serving multiple...

What Gets Logged

…amic does not log anything beyond the following: id, : A unique identifier for the search log itself. This does not have any correlation to the user, nor does it provide a way to uniquely identify an individual user, create_at, : The date and...

Laravel ViewErrorBag Public API: getBags

…ring ' :message ' ( length = 8 ) 10 ' paymentErrors ' => 11 object ( Illuminate \ Support \ MessageBag ) [ 143 ] 12 protected ' messages ' => 13 array ( size = 0 ) 14 empty 15 protected ' format ' => string ' :message ' ( length = 8 )This article...

Laravel Array Helper Function: array_except

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

That Escalated Quickly: All the New Things

…ew article series about writing a custom Statamic search provider, focused on documentation-heavy websites. About eighty pages into the draft for that article I decided it would be nice to also have a sample site to go along with it, as well as...

Filter Search