Showing 10 of 2,055 results.

Submitting Replies via AJAX | Advanced Reply Forms

When customizing your comment form with the JavaScript API and helper methods, you might want to submit the comments to the Meerkat API via AJAX. In doing so, you can create incredibly interactive experiences for your site's visitors. Before...

Antlers and Blade Formatters: Behind the Scenes

In this article, I thought it would be fun to look behind the scenes at how both the Antlers and Blade formatters work. We will look at examples from both formatters since they essentially employ the same strategy to format source documents.

Example Use | Laravel 5.5 String Helper Method: snake

Here are a few examples with the result above the function call in comments: 1 use Illuminate \ Support \ Str ; 2 3 // my_words 4 echo Str :: snake ( ' MyWords ' ) ; 5 6 // my-words 7 echo Str :: snake ( ' MyWords ' , ' - ' ) ; 8 9 //...

SORT_NUMERIC | Laravel Collection Public API: sortBy

The SORT_NUMERIC treats each item as a number when doing the comparison. The following code example shows how to use the SORT_NUMERIC flag when sorting the $collection created previously (the callback function will return the string representation...

SORT_STRING | Laravel Collection Public API: sortBy

The SORT_STRING treats each item as a string when doing the comparison. The following code example shows how to use the SORT_STRING flag when sorting the $collection created previously (the callback function will return the string representation...