*/ class EventMediaFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { $user = User::factory(); return [ 'uuid' => (string) Str::uuid(), 'user_id' => $user, 'event_id' => Event::factory()->for($user), 'collection' => 'gallery', 'name' => fake()->word().'.jpg', 'mime_type' => 'image/jpeg', 'disk' => 'local', 'path' => 'event-media/test/original.jpg', 'thumbnail_path' => 'event-media/test/thumb.jpg', 'preview_path' => 'event-media/test/preview.jpg', 'size' => 12345, 'width' => 1200, 'height' => 800, 'thumbnail_width' => 320, 'thumbnail_height' => 320, 'preview_width' => 900, 'preview_height' => 600, ]; } }