public function makeTheGoodStuff($count) { $faker = \Faker\Factory::create(); $this->output->progressStart($count); for ($x = 1; $x <= $count; $x++) { $content = YAML::dump(['first_name' => $faker->firstName, 'last_name' => $faker->lastName, 'email' => $faker->email], $faker->realText(500)); File::put(users_path() . $faker->unique()->username . '.yaml', $content); $this->output->progressAdvance(); } $this->output->progressFinish(); }
public function makeTheGoodStuff($count, $folder) { $faker = \Faker\Factory::create(); $extension = Config::get('system.default_extension'); $this->output->progressStart($count); for ($x = 1; $x <= $count; $x++) { $content = YAML::dump(['title' => $faker->catchPhrase, 'author' => $faker->name, 'tags' => $faker->words(3)], $faker->realText(500)); File::put(content_path('collections/') . $folder . '/' . $faker->date() . '.' . $faker->slug . '.' . $extension, $content); $this->output->progressAdvance(); } $this->output->progressFinish(); }