protected function registerEntityManager()
    {
        // Bind the default Entity Manager
        $this->app->singleton('em', function ($app) {
            return $app->make(ManagerRegistry::class)->getManager();
        });

        $this->app->alias('em', EntityManager::class);
        $this->app->alias('em', EntityManagerInterface::class);
    }
protected function registerEntityManager()
    {
        // Bind the default Entity Manager
        $this->app->singleton('em', function ($app) {
            return $app->make(ManagerRegistry::class)->getManager();
        });

        $this->app->alias('em', EntityManager::class);
        $this->app->alias('em', EntityManagerInterface::class);
    }
protected function registerEntityManager ( ) { // Bind the default Entity Manager $ this -> app -> singleton ( 'em' , function ( $ app ) { return $ app -> make ( ManagerRegistry :: class ) -> getManager ( ) ; } ) ; $ this -> app -> alias ( 'em' , EntityManager :: class ) ; $ this -> app -> alias ( 'em' , EntityManagerInterface :: class ) ; }
Setup the entity manager
Setup the entity manager