protected function getPageWithTags($tags = false) { $page = Page::first(); if (!$tags) { $tags = factory(Tag::class, $this->defaultTagCount)->make(); } $page->tags()->saveMany($tags); return $page; }