Skip to content

Commit 10ce492

Browse files
committed
Merge branch '5.8' of https://github.com/fulopattila122/laravel-docs into fulopattila122-5.8
2 parents 86c1321 + dc8e5bc commit 10ce492

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

upgrade.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,14 @@ The `firstWhere` method signature [has changed](https://github.com/laravel/frame
188188
*/
189189
public function firstWhere($key, $operator = null, $value = null);
190190

191+
#### The `add` Method
192+
193+
**Likelihood Of Impact: Very Low**
194+
195+
The `add` method [has been moved](https://github.com/laravel/framework/pull/27082) from Eloquent to the base collection. If you were extending `Illuminate\Support\Collection` and the extended class has an `add` method, make sure the method signature matches its parent:
196+
197+
public function add($item);
198+
191199
<a name="console"></a>
192200
### Console
193201

0 commit comments

Comments
 (0)