Skip to content

Commit

Permalink
default to empty array in BelongsToMany::create
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Aug 3, 2017
1 parent b7e74b0 commit 973bff4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ public function saveMany($models, array $pivotAttributes = [])
* @param bool $touch
* @return \Illuminate\Database\Eloquent\Model
*/
public function create(array $attributes, array $joining = [], $touch = true)
public function create(array $attributes = [], array $joining = [], $touch = true)
{
$instance = $this->related->newInstance($attributes);

Expand Down

0 comments on commit 973bff4

Please sign in to comment.