Laravel 5 Collections: Checking If a Collection Contains Items With isEmpty
The isEmpty can be used to determine if the collection has items or not. If the collection has no items, true will be returned, otherwise false will be returned.1 public function isEmpty ( ) ;The following example demonstrates the basic usage of...