F
Filament10mo ago
Hasith

How can I access the model object inside the custom Edit page?

I want to access $support model inside the blade view. How can i access that?
No description
No description
6 Replies
krekas
krekas10mo ago
Add it as a property or something in your component first
Hasith
Hasith10mo ago
So if i inside the user edit page? How can I access the corresponding $user? Is there a default way? Can i access that user in the blade view using this $record ?
krekas
krekas10mo ago
What is $user? I don't get it why you do custom page?
Hasith
Hasith10mo ago
I'm new to filament. I want to add a custom livewire component to the Support Edit page. For that component, i want to pass the corresponding $support Object. I created custom edit page. Now it's working fine. but i want to know how can i access that editing record inside the blade? should i use $data or $record or any other variable? @krekas
krekas
krekas10mo ago
$this->record maybe. Don't remember. There should be something mentioned in the docs
toeknee
toeknee10mo ago
Krekas is correct