我使用的是Filament 3.2.如何在现场更新占位符内容?
Select::make('authors')
->relationship('authors', 'name')
->live()
->afterStateUpdated(function (string $operation, $state, Forms\Set $set, Forms\Get $get) {
$user = User::find($state[0]);
if ($user) {
$userEmail = $user->email;
$set('authoremail', $userEmail);
}
}),
// TextInput::make('authoremail')
// ->label("Author's Email")
// ->disabled(),
Placeholder::make('authoremail')
如果它是TextInput
,它工作.但它在Placeholder
上不起作用.如何让它在Placeholder
上工作?