Example Use | Laravel 5 Collections: Determining If a Collection Contains an Element With contains
The following demonstrates the contains method in its most basic usage: 1 use Illuminate \ Support \ Collection ; 2 3 // Create a new collection instance. 4 $ collection = new Collection ( [ 5 ' bear ' , 6 ' whale ' , 7 ' chicken ' , 8 '...