You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a sidebar for the edit view of a model. For this, I am using Components\View::make($view);
But how to access the current data of the model - for example the name field inside the blade file?
I am currently achieving it with {{ $formComponent->getForm()->getLivewire()->record->input }} but that looks quite uggly and maybe isn't the most effective way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to create a sidebar for the edit view of a model. For this, I am using
Components\View::make($view);
But how to access the current data of the model - for example the
name
field inside the blade file?I am currently achieving it with
{{ $formComponent->getForm()->getLivewire()->record->input }}
but that looks quite uggly and maybe isn't the most effective way.Beta Was this translation helpful? Give feedback.
All reactions