Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

anonymouse703's avatar

How to display video in view page?

I created a view page for advertisement management.. however on the view page I cannot display the video display since it only has image entry in infolist..

I can only display the add banner but not the video

  public static function getInfoListProfilePhotPreview() : Section
    {
        return Section::make()
                    ->schema([
                        ImageEntry::make('banner.path')
                        ->label('Banner photo')
                        ->circular()
                        ->defaultImageUrl(fn ($record) => $record->banner ? url($record->banner->path) : asset('image/no-image.png'))
                    ])
                    ->columnSpan(1)
                    ->extraAttributes(['class' => 'flex flex-col items-center']);
    }

0 likes
0 replies

Please or to participate in this conversation.