I am looking for some package or the correct way that the user can through an input add the url of a youtube video and it is added correctly and previewed.
My code Create:
$properties = Property::create([
'video' => $this->video,
])
View:
<input wire:model="video" class="form-control" type="text" placeholder="Url youtube">
If I add it as a url the video is not shown and it previews the url. it works if i insert it as iframe.
Could you help me how it could be done by directly inserting the address of the video?