Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Mar 19, 2019
1 parent e2b114e commit 270eeb8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 74 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to `laravel-collection-macros` will be documented in this file

## 5.0.2 - 2019-0319

- require laravel 5.8.4
- remove `join` method as the same implementation has been added to Laravel

## 5.0.1 - 2019-03-07
- fix `paginate` for pages other than 1

Expand Down
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,22 +374,6 @@ collect([1, 2, 3])->ifEmpty(function(Collection $collection) { // non-empty coll
});
```

### `join`

Join all items from the collection using a string. The final item can be glued with another string.

```php
collect(['a', 'b', 'c']))->join(', ')); // returns 'a, b, c'

collect(['a', 'b', 'c']))->join(', ', ' and ')); // returns 'a, b and c'

collect(['a', 'b']))->join(', ', ' and ')); // returns 'a and b'

collect(['a']))->join(', ', ' and ')); // returns 'a'

collect([]))->join(', ', ' and ')); // returns ''
```

### `none`

Checks whether a collection doesn't contain any occurrences of a given item, key-value pair, or passing truth test. The function accepts the same parameters as the `contains` collection method.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"require": {
"php": "^7.2",
"laravel/framework": "~5.8.0"
"laravel/framework": "~5.8.4"
},
"require-dev": {
"amphp/parallel": "^0.2.0",
Expand Down
34 changes: 0 additions & 34 deletions src/Macros/Join.php

This file was deleted.

23 changes: 0 additions & 23 deletions tests/Macros/JoinTest.php

This file was deleted.

0 comments on commit 270eeb8

Please sign in to comment.