diff --git a/src/Database/Model.php b/src/Database/Model.php index 57800f5f..68ca608a 100644 --- a/src/Database/Model.php +++ b/src/Database/Model.php @@ -851,7 +851,6 @@ public function newRelationPivot($relationName, $parent, $attributes, $table, $e { $relation = $this->{$relationName}(); $pivotModel = $relation->getPivotClass(); - return $pivotModel::fromRawAttributes($parent, $attributes, $table, $exists); } diff --git a/src/Foundation/Application.php b/src/Foundation/Application.php index e07a4e66..ab703299 100644 --- a/src/Foundation/Application.php +++ b/src/Foundation/Application.php @@ -327,7 +327,7 @@ public function after($callback) */ public function error(Closure $callback) { - $this->make('Illuminate\Contracts\Debug\ExceptionHandler')->error($callback); + $this->make('Illuminate\Contracts\Debug\ExceptionHandler')->error($callback); // @phpstan-ignore-line } /**