@vincent15000 Maybe you give a try with updating your genderless component like this:
<input {{ $attributes->whereStartsWith('wire:model') }}>
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I want to avoid to render once again a component while some action is triggered.
I have added #[Renderless], but when I have a look at the network tab in the devtools, the update request is triggered. And while closing the modal form, I also see that the fields are emptied, but if #[Renderless] was really applied, I shouldn't see the fields becoming empty.
Furthermore I want to not expose the names of the models, so I wanted to use this from the documentation.
https://livewire.laravel.com/docs/properties#properties-expose-system-information-to-the-browser
public function boot(): void
{
Relation::morphMap([
'type' => 'App\Models\Type',
'user' => 'App\Models\User',
]);
}
But in the devtools I still see for example App\Models\Type instead of type.
For example I see this in the devtools.
{
"App\\Models\\Type": {
"value": 2,
"xdebug_link": {
"url": "phpstorm://open?file=%2Fhome%2Fvincent%2FDocuments%2FPRO%2FDEV%2FPERSO%2Fmentoring%2Fapp%2FModels%2FType.php&line=1",
"ajax": false,
"filename": "Type.php",
"line": "?"
}
},
"App\\Models\\User": {
"value": 1,
"xdebug_link": {
"url": "phpstorm://open?file=%2Fhome%2Fvincent%2FDocuments%2FPRO%2FDEV%2FPERSO%2Fmentoring%2Fapp%2FModels%2FUser.php&line=1",
"ajax": false,
"filename": "User.php",
"line": "?"
}
}
}
Who has already used these functionalities and can help me understand how to use them ?
Thanks ;).
V
Please or to participate in this conversation.