F
Filament15mo 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
krekas15mo ago
Add it as a property or something in your component first
Hasith
HasithOP15mo 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
krekas15mo ago
What is $user? I don't get it why you do custom page?
Hasith
HasithOP15mo 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
krekas15mo ago
$this->record maybe. Don't remember. There should be something mentioned in the docs
toeknee
toeknee15mo ago
Krekas is correct
Want results from more Discord servers?
Add your server