Beispiel #1
0
 /**
  * @param $list
  */
 protected static function savePages($list)
 {
     foreach ($list as $item) {
         $page = new Page($item);
         $page->save();
         $page->attachImage(__DIR__ . '/images/pages/' . $page->id . '.jpg');
     }
 }