Commit 221508e4 authored by Ben Argo's avatar Ben Argo

Add default attribute to `create` method

This brings it inline with the base Eloquent `create` method, and allows us to call this method without providing any attributes.
parent 3f86eb8b
......@@ -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