Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $faker = Factory::create();
- $data = new Collection();
- $campaignNames = [
- "30% Off Storewide Sale",
- "45% Off Big Grand Sale",
- "WIN!! Instagram competition on Now!",
- "Mother’s Day Sale",
- "Bedroom Planner - Plan your perfect bedroom!",
- "Night Comfort Guarantee - Sleep Easy or Exchange",
- ];
- foreach ($campaignNames as $campaignName) {
- $data->add([
- 'campaign_name' => $campaignName,
- 'description' => $faker->sentences(3, true),
- 'start_date' => $faker->dateTimeBetween('-30 days', 'now')->format('d/m/y'),
- 'end_data' => $faker->dateTimeBetween('now', '+30 days')->format('d/m/y'),
- 'actions' => $faker->imageUrl(),
- ]);
- }
- $this->info(AppHelper::toDataTable($data));
Advertisement
Add Comment
Please, Sign In to add comment