Ashraf
Ashraf
FFilament
Created by Ashraf on 3/9/2024 in #❓┊help
Dependency Injection in Filament
I have been using laravel filament for a month now. It is quite good and most of my requirements are well served by it. But recently due to a requirement I am trying to inject one of my custom service class in a custom page class, but somehow I am not able to do so. In laravel, we inject the dependency via constructor or in controller action. I know I can use app() to resolve them. But what is the proper or best way to do it?
5 replies