/**
  *
  */
 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);
     }
 }
Esempio n. 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  Tag $tag
  * @return Response
  */
 public function destroy(Tag $tag)
 {
     $this->tag->destroy($tag);
     flash()->success(trans('core::core.messages.resource deleted', ['name' => trans('blog::tag.title.tag')]));
     return redirect()->route('admin.blog.tag.index');
 }