Ejemplo n.º 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  Tag $tag
  * @internal param int $id
  * @return Response
  */
 public function destroy(Tag $tag)
 {
     $this->tag->destroy($tag);
     flash(trans('tags::messages.tag deleted'));
     return redirect()->route('admin.tags.tag.index');
 }
Ejemplo n.º 2
0
 public function all()
 {
     $tags = $this->tag->all();
     return ['count' => $tags->count(), 'data' => $tags];
 }