src/DoctrineServiceProvider.php
public function registerProxyAutoloader()
    {
        $this->app->afterResolving(ManagerRegistry::class, function (ManagerRegistry $registry) {
            /** @var EntityManagerInterface $manager */
            foreach ($registry->getManagers() as $manager) {
                Autoloader::register(
                    $manager->getConfiguration()->getProxyDir(),
                    $manager->getConfiguration()->getProxyNamespace()
                );
            }
        });
    }
public function registerProxyAutoloader()
    {
        $this->app->afterResolving(ManagerRegistry::class, function (ManagerRegistry $registry) {
            /** @var EntityManagerInterface $manager */
            foreach ($registry->getManagers() as $manager) {
                Autoloader::register(
                    $manager->getConfiguration()->getProxyDir(),
                    $manager->getConfiguration()->getProxyNamespace()
                );
            }
        });
    }
public function registerProxyAutoloader ( ) { $ this -> app -> afterResolving ( ManagerRegistry :: class , function ( ManagerRegistry $ registry ) { /** @var EntityManagerInterface $manager */ foreach ( $ registry -> getManagers ( ) as $ manager ) { Autoloader :: register ( $ manager -> getConfiguration ( ) -> getProxyDir ( ) , $ manager -> getConfiguration ( ) -> getProxyNamespace ( ) ) ; } } ) ; }
Register proxy autoloader

@return void
Register proxy autoloader