Can have Faker Provider to Events
blpraveen opened this issue · comments
B L Praveen commented
Faker Provider to Events Model is it possible to add
Marin Bezhanov commented
Hi @blpraveen,
I am not sure I understand your request. Can you provide some additional details please?
Thanks for your interest in making the project better!
B L Praveen commented
Like Product Seeder. Can we have a seeder to Events
'title' => $title,
'description' => $description,
'guest_star' => $this->faker->name(),
'organised_by' => $this->faker->name(),
'ticket_logo' => $this->faker->getImageAzurePath($path,$width = 300, $height = 95,$extension='png'),
'ticket_bg' => $this->faker->getImageAzurePath($path,$width = 500, $height = 235),
'seat_image' => $this->faker->getImageAzurePath($path,$width = 650, $height = 600),
'payment_processed' => $this->faker->company,
'invoice_logo' => $this->faker->getImageAzurePath($path,$width = 300, $height = 95,$extension='png'),
'thumbnail' => $this->faker->getImageAzurePath($path,$width = 400, $height = 487),
'poster' => $this->faker->getImageAzurePath($path,$width = 751, $height = 389),
'video_link' => $this->faker->youtubeUri(),
"country_id" => !empty($venue) ? $venue->country_id : 0,
"venue" => !empty($venue) ? $venue->title : null,
"address" => !empty($venue) ? $venue->address : null,
"city" => !empty($venue) ? $venue->city : null,
"zipcode" => !empty($venue) ? $venue->zipcode : null,
"state" => !empty($venue) ? $venue->state : null,
"latitude" => !empty($venue) ? $venue->glat : null,
"longitude" => !empty($venue) ? $venue->glong : null,
"online_location" => $this->faker->realText($maxNbChars = 300, $indexSize = 2),
//CUSTOM
'youtube_embed' => $this->faker->youtubeEmbedCode(),
'vimeo_embed' => $this->faker->youtubeEmbedCode(),
'start_date' => $this->faker->dateTimeInIntervalFormat($startDate = '0 years', $interval = '+ '.$dayInterval.' days + '.$timeStartInterval.' hours',null, $format = 'Y-m-d'),
'end_date' => $this->faker->dateTimeInInterval($startDate = '0 years', $interval = '+ '.$dayInterval.' days + '.$timeEndInterval.' hours', null,$format = 'Y-m-d'),
'start_time' => $this->faker->dateTimeInInterval($startDate = '0 years', $interval = '+ '.$dayInterval.' days + '.$timeStartInterval.' hours', null,$format = 'H:i:s'),
'end_time' => $this->faker->dateTimeInInterval($startDate = '0 years', $interval = '+ '.$dayInterval.' days + '.$timeEndInterval.' hours', null, $format = 'H:i:s'),
'repetitive' => 0,
'featured' => 1,
'status' => 1,
'meta_title' => $title,
'meta_keywords' => $this->faker->words(10, true),
'meta_description' => $this->faker->realText($maxNbChars = 300, $indexSize = 2),
]