Probador de enlaces para cambios URL
Filamentphp permite agregar contenido delante o detrás de los inputs en forma sencilla
use Filament\Forms\Components\Actions\Action as ActionComp; ... Forms\Components\TextInput::make('url') ->required() ->suffixAction(fn (?string $state): ActionComp => ActionComp::make('visitar') ->icon('heroicon-s-external-link') ->url( filled($state) ? "$state" : null, shouldOpenInNewTab: true, ),
Lo único importante es declarar al inicio del script el uso de ActionComp
Top comments (0)