Exemplo n.º 1
0
 /**
  * Run the seeder.
  */
 public function run()
 {
     $repository = new EntryRepository();
     $repository->setModel(new UrlLinkTypeModel());
     $repository->truncate();
     $menu = $this->menus->findBySlug('footer');
     $pyrocms = $repository->create(['en' => ['title' => 'PyroCMS.com'], 'url' => 'http://pyrocms.com/']);
     $documentation = $repository->create(['en' => ['title' => 'Documentation'], 'url' => 'http://pyrocms.com/documentation']);
     $this->links->truncate();
     $this->links->create(['menu' => $menu, 'target' => '_blank', 'entry' => $pyrocms, 'type' => 'anomaly.extension.url_link_type']);
     $this->links->create(['menu' => $menu, 'target' => '_blank', 'entry' => $documentation, 'type' => 'anomaly.extension.url_link_type']);
 }