Showing 10 of 1,322 results.

Laravel 5 Collections: Paginating Collections With forPage

…s: $page , which is used to tell the collection which "page" should be returned and $perPage , which is used to control the number of items that should be on a given page. The forPage method returns a new collection instance. This method can be...

Laravel Collection Public API: average

average($key = null) The average method is simply an alias of the avg (discussed in the Laravel Collection Public API: avg article) method, and can be used in exactly the same way to calculate the averages of items within a collection. 1 <?php 2 3...

fake() | Laravel 5 Facades

The fake method will swap the currently bound notification channel manager instance with a fake; this is incredibly useful for testing purposes. The fake notification manager instance, by default, is an instance of...

fake() | Laravel 5 Facades

The fake method will swap the currently bound queue manager instance with a fake; this is incredibly useful for testing purposes. The fake queue manager instance, by default, is an instance of "Illuminate\Support\Testing\Fakes\QueueFake".

Installing Linguistics for Adobe Brackets

…This guide was written for the latest version of Brackets (at the time of writing) - Brackets 1.11. The first step to installing this plugin is to make sure that you have Brackets installed. You can do this by visiting http://brackets.io/ and...

jQuery: Checking if an Item is an Array

…console . log ( " Apple was in the array. " ) ; 8 } else { 9 // Item is not in the array. 10 console . log ( " Apple was not in the array. " ) ; 11 } The takeaway here is that when we use the $.inArray function, we check its value against -1 . -1...

Filter Search