Skip to content

Commit fb138f1

Browse files
themsaidtaylorotwell
authored andcommitted
revert breaking change (#20407)
1 parent 8053238 commit fb138f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ public function saveMany($models, array $pivotAttributes = [])
740740
* @param bool $touch
741741
* @return \Illuminate\Database\Eloquent\Model
742742
*/
743-
public function create(array $attributes = [], array $joining = [], $touch = true)
743+
public function create(array $attributes, array $joining = [], $touch = true)
744744
{
745745
$instance = $this->related->newInstance($attributes);
746746

0 commit comments

Comments
 (0)