Inject an HttpClient into a Filament Page

Hello devs, so I have an HttpClient class that I have created and implemented some methods. I want to inject this in a Filament Page and consume the endpoints. How does this work please? Sorry if the question is generic.
2 Replies
Patrick Boivin
Patrick Boivin2mo ago
One option would be to use the boot() method on your Page component: https://livewire.laravel.com/docs/lifecycle-hooks#boot
Abdellah
Abdellah2mo ago
Thank you @pboivin