Showing 10 of 1,090 results.

Laravel Collection Public API: last

last(callable $callback = null, $default = null) The last method is the logical opposite of the first method, and is used to get the last item in a collection, or to get the last item in a collection that matches a certain criteria. A $callback...

Laravel Collection Public API: push

push($value) The push method is the logical opposite of the prepend method and will push an item onto the end of the collection. The push method returns a reference to the original collection instance. The following code example shows how to use...

Advanced Reply Forms

…ve read through the Reply Forms article and already have a custom reply form that you want to extend further with JavaScript. You can hook into Meerkat's reply-to functionality by modifying the MeerkatReply window object. This object is simply a...

The not:user:in Filter | The Auth & User Filters

The not:user:in filter is the logical opposite of the user:in filter, and allows you to filter comments based on if the authenticated user does not appear in the provided list of user identifiers. The following example would return only those...

E-mailing Output | Laravel Task Scheduling: Managing Task Output

…can be changed by supplying a truth value as the argument for the $onlyIfOutputExists parameter. By default, the emailOutputTo method will always send an E-mail, even if the task does not generate any output. The emailWrittenOutputTo method is a...

Laravel 5: Retrieving Environment Variables With env

The env helper function is used to retrieve the value of an environment variable. You may supply a $default value to be returned if there is no value currently set for the provided $key .The signature of the env function is: 1 function env ( 2 $...

Defining Custom Filters | Advanced Filtering

Custom filters can also be defined in the meerkat/filters.php file using the filter helper method. The following filter will only return comments that contain the phrase hello in their content: 1 <?php 2 3 use Illuminate \ Support \ Str ; 4 use...

Filter Search