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
One option would be to use the boot() method on your Page component:
https://livewire.laravel.com/docs/lifecycle-hooks#boot
Thank you @pboivin