/** * */ 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); } }
/** * Remove the specified resource from storage. * * @param Category $category * @return Response */ public function destroy(Category $category) { $this->category->destroy($category); flash(trans('blog::messages.category deleted')); return redirect()->route('admin.blog.category.index'); }