Filament: Custom Page with Search in 3rd-Party Service
Filament 3
Also available in
Filament 4/5 version
Not everything is stored in your database, so you might want to build a Custom Page with a search inside it.
Get the Source Code:
Only This Example
$9
One-time payment
Full source code for Filament: Custom Page with Search in 3rd-Party Service
Downloadable ZIP file with the source code
Lifetime access to this example
Sign in with GitHub to buy
Sign in first, then complete your $9 checkout.
Best value — all 177 examples
View membership plans
FilamentExamples Membership
$99
/year
or
$199
lifetime
Access to code of all 177 examples
Future new examples and updates included
FilaCheck Pro package licence included
MCP server included
30-day money-back guarantee
How it works
We have a custom Filament page where we show a form.
app/Filament/Pages/AskAI.php:
use Filament\Pages\Page;use Filament\Forms\Form;use Filament\Forms\Components\Textarea; class AskAI extends Page{ protected static ?string $navigationIcon = 'heroicon-o-question-mark-circle'; protected static string $view = 'filament.pages.ask-ai'; protected static ?string $title = 'Ask AI'; public ?array $data = []; public string $answer = ''; public function mount(): void { $this->form->fill(); } public function form(Form $form): Form { return $form ->schema([ Textarea::make('question') ->required(), ]) ->statePath('data'); }}
Next, we will:
- Build our Page contents (search form)
- Handle the Search logic
- Display Search results
The FULL tutorial is available after the purchase: in the Readme file of the official
repository you would get invited to.