public function update($id, $name)
 {
     Assertion::string($name);
     $tag = $this->tags->tagOfId($id);
     $tag->name = $name;
     $tag->slug = Str::slug($name);
     $this->tags->update($tag);
     return $tag;
 }
 public function getDataTables()
 {
     $tags = $this->tagRepository->getByPage(Input::get('start'), Input::get('length'));
     return $this->respond(['draw' => Input::get('raw'), "recordsTotal" => 7, 'data' => $this->transformCollection($tags->items)]);
 }