Commit 03f157ee authored by Jens Segers's avatar Jens Segers Committed by GitHub

Merge pull request #1218 from benargo/builder-create

Add default attribute to `EmbedsOneOrMany::create` method
parents 8549c8fa 221508e4
......@@ -143,7 +143,7 @@ abstract class EmbedsOneOrMany extends Relation
* @param array $attributes
* @return Model
*/
public function create(array $attributes)
public function create(array $attributes = [])
{
// Here we will set the raw attributes to avoid hitting the "fill" method so
// that we do not have to worry about a mass accessor rules blocking sets
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment