src/MetableServiceProvider.php
protected function registerDataTypeRegistry()
    {
        $this->app->singleton(Registry::class, function () {
            $registry = new Registry();
            foreach (config('metable.datatypes') as $handler) {
                $registry->addHandler(new $handler());
            }

            return $registry;
        });
        $this->app->alias(Registry::class, 'metable.datatype.registry');
    }
protected function registerDataTypeRegistry()
    {
        $this->app->singleton(Registry::class, function () {
            $registry = new Registry();
            foreach (config('metable.datatypes') as $handler) {
                $registry->addHandler(new $handler());
            }

            return $registry;
        });
        $this->app->alias(Registry::class, 'metable.datatype.registry');
    }
protected function registerDataTypeRegistry ( ) { $ this -> app -> singleton ( Registry :: class , function ( ) { $ registry = new Registry ( ) ; foreach ( config ( 'metable.datatypes' ) as $ handler ) { $ registry -> addHandler ( new $ handler ( ) ) ; } return $ registry ; } ) ; $ this -> app -> alias ( Registry :: class , 'metable.datatype.registry' ) ; }
Add the DataType Registry to the service container.

@return void
Add the DataType Registry to the service container .