/** * 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'); }
public function all() { $tags = $this->tag->all(); return ['count' => $tags->count(), 'data' => $tags]; }