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.
create
1 parent 3f86eb8 commit 221508eCopy full SHA for 221508e
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