Search by

blemli / websearch-for-filament

blemli

Search the web from any Filament field

Package info

github.com/blemli/websearch-for-filament

pkg:composer/blemli/websearch-for-filament

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v0.1.1 2026-09-17 15:10 UTC

This package is auto-updated.

Last update: 2026-09-17 15:38:28 UTC


README

Search the web from any Filament field.

websearch

Latest Version on Packagist GitHub Tests Action Status Total Downloads

A hint action that opens a search for the field's value on Google, DuckDuckGo, Bing, Brave, Swisscows, Ecosia, Startpage, Qwant, Yandex or Baidu, with harmonised filters (images, videos, news, shopping, license, transparency, size, layout, timespan, country). Users can pick their own engine. No migration needed.

Installation

composer require blemli/websearch-for-filament
php artisan websearch-for-filament:install -n

Register the plugin in your panel provider: ->plugin(WebSearchPlugin::make()->userChoice())

Usage

TextInput::make('name')->websearch(),                                   // "Search on Google" for the field's value
FileUpload::make('image')->imagesearch(['vendor', 'name']),             // image search for two fields joined
FileUpload::make('image')->imagesearch('name', fn (WebSearchAction $a) => $a->transparent()->license(License::CreativeCommons)),

WebSearchAction::make()->query('name')->engine(DuckDuckGo::class)->news()->within(Timespan::Week), // any action slot

Google::images('Fujifilm GFX')->transparent()->layout(Layout::Tall)->url(); // just the URL, no Filament needed

Results open in a new tab by default; ->openInSameTab(), ->openInPopup() and ->openInSlideOver() (Swisscows, Bing, Baidu) are available on the action and in the user's profile (restrict them with ->exceptOpenModes([OpenIn::Popup])) when Filament Breezy is installed. ->trackSearches() on the plugin fires a SearchOpened event and logs to spatie/laravel-activitylog when present. Ships in English and German.

License

MIT © blemli