faker-provider-collection icon indicating copy to clipboard operation
faker-provider-collection copied to clipboard

Can have Faker Provider to Events

Open blpraveen opened this issue 8 months ago • 2 comments

Faker Provider to Events Model is it possible to add

blpraveen avatar Dec 04 '23 06:12 blpraveen

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!

mbezhanov avatar Dec 26 '23 13:12 mbezhanov

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),
]

blpraveen avatar Dec 27 '23 12:12 blpraveen