Skip to content

Commit

Permalink
Merge pull request #11 from bedrijfsportaal/master
Browse files Browse the repository at this point in the history
Merge current version
  • Loading branch information
Rido authored Nov 7, 2018
2 parents a1a0585 + 11542f0 commit 05fb689
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Rido/MDR/Models/Templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Templates extends Model
* @var array
*/
protected $fillable = [
'template',
'template_id',
'template_name',
'record_id',
Expand Down Expand Up @@ -46,6 +47,20 @@ public function find($id)
return $result;
}

/**
* @param array $attributes
*
* @return array
*/
public function add(array $attributes = [])
{
$this->fill($attributes);

$result = $this->connection->put('dns_template_add', $this->attributes);

return $result;
}

/**
* @param array $attributes
*
Expand Down

0 comments on commit 05fb689

Please sign in to comment.