protected function registerCustomBindings(): void
    {
        $repositoryFactory = $this->app->make(IRepositoryFactory::class);

        foreach (config('laravel_repositories.bindings') as $className => $repository) {
            $repositoryFactory->register($className, $repository);
        }
    }
protected function registerCustomBindings(): void
    {
        $repositoryFactory = $this->app->make(IRepositoryFactory::class);

        foreach (config('laravel_repositories.bindings') as $className => $repository) {
            $repositoryFactory->register($className, $repository);
        }
    }
protected function registerCustomBindings ( ) : void { $ repositoryFactory = $ this -> app -> make ( IRepositoryFactory :: class ) ; foreach ( config ( 'laravel_repositories.bindings' ) as $ className => $ repository ) { $ repositoryFactory -> register ( $ className , $ repository ) ; } }
Register custom repositories implementations.

@return void

@throws BindingResolutionException
Register custom repositories implementations .