check if collection has items larvel code example Example: collection empty laravel $isempty = $collection->isEmpty();