Showing 10 of 2,145 results.

Creating the Comment Form | Integrating Meerkat

To create the comment form, we will use the {{ meerkat:create }} Antlers tag. This tag will give us access to Meerkat's form definition, as well as useful information we can use after a visitor submits their comment. At the most basic level, this...

Laravel 5: Dispatching Queued Jobs With dispatch

The dispatch helper function can be used to push a new job onto the job queue (or dispatch the job). This function returns a new instance of \Illuminate\Foundation\Bus\PendingDispatch ; having access to this class instance will allow you to modify...

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

SORT_LOCALE_STRING | Laravel Collection Public API: sortBy

The SORT_LOCALE_STRING treats each item as a string, while also taking into account the current locale, when doing the comparison. The following code example shows how to use the SORT_LOCALE_STRING flag when sorting the $collection created...

Laravel Collection Public API: shift

shift The shift method is used to remove the first item from the collection and return its value. The shift method modifies the collection instance. The following code example shows how to use the shift method: 1 <?php 2 3 use Illuminate \ Support...