/** * Run the database seeds. * * @return void */ public function run() { $faker = Faker\Factory::create(); for ($i = 0; $i < 10; $i++) { $confession = Confession::create(['from' => $faker->word(), 'to' => $faker->word(), 'content' => $faker->paragraph()]); } }