Changing URL before storing in database
I'm using a Key Value Input field to allow a user to enter links to Youtube:
Key: video 1 | Value: https://www.youtube.com/watch?v=mrMM_1fVaYk
Key: video 2 | Value: https://www.youtube.com/watch?v=PT3dQ6lCOyY
Before this data is stored in the database I need to replace the
watch?v=
to embed
. In normal Livewire components I know how to do this, but given the key/value input is in Filament, how could I replace this substring before writing it to the database?Tilly on a bike
YouTube
How Hard is Racing A-Grade on Zwift?
Tuesday, 4:30am, I roll out of bed with every intention to take it easy this morning. I log on to Zwift and check out what's on... the DBR Pulsure Cup race around the "Royal Pump Room 8" with a stacked 65 deep field in A-Grade? Ok, I'm in.
Let's see how this goes.
Buy laptop stand for Zwifting here: https://amzn.to/3lapePt
Buy Wahoo Kickr Core...
John Savill's Technical Training
YouTube
Defender for OTHER Clouds (AWS and GCP)
Me talking about clouds other than Azure :-) How Defender for Cloud offers great Cloud Security Posture Management and more for Amazon Web Services (AWS) and Google Cloud Platform (GCP).
🔎 Looking for content on a particular topic? Search the channel. If I have something it will be there!
▬▬▬▬▬▬ C H A P T E R S ⏰ ▬▬▬▬▬▬
00:00 - Introduction
...
4 Replies
loop over the data, transform it then, return the mutated data.
mutateFormDataBeforeCreate
and mutateFormDataBeforeSave
Thanks, that solved it indeed