public function index($trashed = false) { $this->authorize('blog.tags.list'); $tags = $this->tag->with(['posts']); $tags = $trashed ? $tags->onlyTrashed()->paginate(30) : $tags->paginate(30); $title = 'Blog - Tags'; $this->setTitle($title); $this->addBreadcrumb('List all tags'); return $this->view('foundation.tags.list', compact('tags', 'trashed')); }