App\Data\Repositories\Repository::fillAndSave PHP Method

fillAndSave() public method

Fills out an instance of the model and saves it, pretty much like mass assignment.
public fillAndSave ( array $attributes ) : Model
$attributes array
return Illuminate\Database\Eloquent\Model
    public function fillAndSave($attributes)
    {
        $this->model->fill($attributes);
        $this->model->save();
        return $this->model;
    }