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.
2 parents 8549c8f + 221508e commit 03f157eCopy full SHA for 03f157e
src/Jenssegers/Mongodb/Relations/EmbedsOneOrMany.php
@@ -143,7 +143,7 @@ public function saveMany($models)
143
* @param array $attributes
144
* @return Model
145
*/
146
- public function create(array $attributes)
+ public function create(array $attributes = [])
147
{
148
// Here we will set the raw attributes to avoid hitting the "fill" method so
149
// that we do not have to worry about a mass accessor rules blocking sets
0 commit comments