public function run() { $defaultSeed = __DIR__ . $this->seedDirPath . $this->seedFileName; $seedFile = $this->getSeedFile($defaultSeed); $items = Yaml::parse(File::get($seedFile)); foreach ($items as $key => $item) { Faq::create($item); } }