/** * */ private function emptyBlogTables() { foreach ($this->post->all() as $post) { $this->post->destroy($post); } foreach ($this->category->all() as $category) { $this->category->destroy($category); } foreach ($this->tag->all() as $tag) { $this->tag->destroy($tag); } }
/** * Display a listing of the resource. * * @return Response */ public function index() { $tags = $this->tag->all(); return view('blog::admin.tags.index', compact('tags')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { return $this->tag->all(); }