Autowiring interfaces in Laravel 11 is it supported?
Is it possible to autowire interfaces in Laravel? I thought this was introduced with Laravel 11, but i'm still manually adding bindings in the AppServiceProvider
, like this:
public function register(): void
{
$this->app->bind(LoggerHandler::class, LoggerService::class);
}
Thanks for your help