Laravel-Backpack / CRUD

Build custom admin panels. Fast!
https://backpackforlaravel.com
MIT License
3k stars 880 forks source link

Update radio.blade.php #5502

Open vonsofh opened 2 months ago

vonsofh commented 2 months ago

fix my problems, yeah as simple as that...

WHY

Because, when my radio contains backslash () it can't be checked by previous code

BEFORE - What was wrong? What was happening before this PR?

It doesn't checked the radio because value contains backslash ()

AFTER - What is happening after this PR?

Now it can, because using filter

HOW

How did you achieve that, in technical terms?

I tried to make morph relationship, then when I put value App\Models\Room it can't checked the radio when I tried to edit the entry

Is it a breaking change?

I think it is not, just a small fix

How can we test the before & after?

I tested and it was working both for integer value or with backslash ()