Showing 10 of 2,138 results.

Enabling Queue Event Listeners | Using a Job Queue

To enable Social Media Image Kit's queue events you may update the events_enabled value within the queue.php configuration file: 1 <?php 2 3 return [ 4 5 // ... 6 7 /* 8 |-------------------------------------------------------------------------- 9...

Laravel Security Helper Function: e for HTML Entities

The e function is a simple wrapper of PHP's htmlentities function. The e function utilizes the UTF-8 character encoding. The e function will sanitize user input when displaying it to the browser. The signature for the e helper function is:...

Laravel Collection Public API: random

random($amount = 1) The random method will retrieve a random $amount of items from the collection. By default, the random method will return only one item, however a different $amount can be passed in to change the number of items returned. If the...

Laravel Task Scheduling: Managing Task Output

Laravel's task scheduling system makes it simple to manage the output from your tasks, if any. Output from task processes can be appended to a file or emailed to any given email address (provided that email services have been previously...

Laravel Collection Public API: filter

filter(callable $callback = null) The filter method applies a filter to the collection. An optional $callback can be supplied to the filter method. If no $callback is supplied to the filter method, any value in the collection that evaluates to...

Step 1.4 More Methods | Semantic UI Paginator for Laravel 4

Now that we have the first three methods implemented, we need to finish a few more: the getDots and render method. The getDots method is responsible for rendering the ellipsis when there is a lot of links. For the Semantic paginator, we are going...

Laravel Translation Helper: trans_choice

The trans_choice helper function is used to pluralize a given $id , translating it for the given $locale . The choice method accepts the $number of some collection of objects that it should use when making pluralization decisions. Like the trans...