Return the Eloquent model instance in the fill method.
This commit is contained in:
parent
2e34309539
commit
3b5af93064
|
@ -100,7 +100,7 @@ public function __construct($attributes = array())
|
||||||
* Set the attributes of the model using an array.
|
* Set the attributes of the model using an array.
|
||||||
*
|
*
|
||||||
* @param array $attributes
|
* @param array $attributes
|
||||||
* @return void
|
* @return Model
|
||||||
*/
|
*/
|
||||||
public function fill($attributes)
|
public function fill($attributes)
|
||||||
{
|
{
|
||||||
|
@ -108,6 +108,8 @@ public function fill($attributes)
|
||||||
{
|
{
|
||||||
$this->$key = $value;
|
$this->$key = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue