Laravel - Collections - Method Range

The range method returns a collection containing integers between the specified range:

    
    $collection = collect()->range(3, 6);
    
    $collection->all();
    
    // [3, 4, 5, 6]