/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $faker = Faker\Factory::create(); foreach (range(1, 80) as $index) { $title = $faker->company; $slug = (new Slugify())->slugify($title); Company::create(['title' => $title, 'slug' => $slug, 'url' => $faker->domainName, 'quote' => $faker->paragraph(3), 'description' => $faker->paragraph(10), 'image' => $faker->imageUrl($width = 240, $height = 240)]); } }