protected function bindRepositories()
    {
        $bindings = [
            AttributeRepositoryContract::class      => AttributeRepository::class,
            AttributeValueRepositoryContract::class => AttributeValueRepository::class,
            ProductRepositoryContract::class        => ProductRepository::class,
            ProductTypeRepositoryContract::class    => ProductTypeRepository::class,
        ];

        foreach ($bindings as $contract => $implementation) {
            $this->app->bind($contract, $implementation);
        }
    }
protected function bindRepositories()
    {
        $bindings = [
            AttributeRepositoryContract::class      => AttributeRepository::class,
            AttributeValueRepositoryContract::class => AttributeValueRepository::class,
            ProductRepositoryContract::class        => ProductRepository::class,
            ProductTypeRepositoryContract::class    => ProductTypeRepository::class,
        ];

        foreach ($bindings as $contract => $implementation) {
            $this->app->bind($contract, $implementation);
        }
    }
protected function bindRepositories ( ) { $ bindings = [ AttributeRepositoryContract :: class => AttributeRepository :: class , AttributeValueRepositoryContract :: class => AttributeValueRepository :: class , ProductRepositoryContract :: class => ProductRepository :: class , ProductTypeRepositoryContract :: class => ProductTypeRepository :: class , ] ; foreach ( $ bindings as $ contract => $ implementation ) { $ this -> app -> bind ( $ contract , $ implementation ) ; } }
Binds the repository abstracts to the actual implementations.
Binds the repository abstracts to the actual implementations .