F
Filament3mo ago
Wim

Use of variables inside a Field

I want to display information inside a Field. I have used a Text Input below because there is no label Field. Ideally I just want to display the plan name into a Form. Can this be done?

public function form(Form $form): Form {
$plan = $organisation->getPlan();
$plan_name= $plan->name;

return $form
->schema([
TextInput::make($plan_name) //this line
->label('Name')
]);
}

public function form(Form $form): Form {
$plan = $organisation->getPlan();
$plan_name= $plan->name;

return $form
->schema([
TextInput::make($plan_name) //this line
->label('Name')
]);
}
2 Replies
LeandroFerreira
LeandroFerreira3mo ago
GitHub
Use of variables inside a Field · filamentphp filament · Discussion...
Package Panel builder Package Version v3.2.60 How can we help you? I want to display information inside a Field. I have used a Text Input below because there is no Label field. Ideally I just want ...