We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ec8fde commit 70a90e6Copy full SHA for 70a90e6
src/Whisperer.php
@@ -508,9 +508,9 @@ public static function findOrFail($identifier)
508
return $model;
509
}
510
511
- public function all()
+ public static function all()
512
{
513
- return $this->newCollection(collect(static::$client::all())->map(function ($result) {
+ return (new self)->newCollection(collect(static::$client::all())->map(function ($result) {
514
return (new static)->forceFill($attributes);
515
})->toArray());
516
0 commit comments