protected function getModelRepositoryForInformation(ModelInformationInterface $information)
    {
        /** @var ModelRepositoryFactoryInterface $factory */
        $factory = app(ModelRepositoryFactoryInterface::class);

        $modelRepository = $factory->make($information->modelClass());

        $this->applyRepositoryContext($modelRepository, $information);

        return $modelRepository;
    }
protected function getModelRepositoryForInformation(ModelInformationInterface $information)
    {
        /** @var ModelRepositoryFactoryInterface $factory */
        $factory = app(ModelRepositoryFactoryInterface::class);

        $modelRepository = $factory->make($information->modelClass());

        $this->applyRepositoryContext($modelRepository, $information);

        return $modelRepository;
    }
protected function getModelRepositoryForInformation ( ModelInformationInterface $ information ) { /** @var ModelRepositoryFactoryInterface $factory */ $ factory = app ( ModelRepositoryFactoryInterface :: class ) ; $ modelRepository = $ factory -> make ( $ information -> modelClass ( ) ) ; $ this -> applyRepositoryContext ( $ modelRepository , $ information ) ; return $ modelRepository ; }
Returns instance of a model repository for given model information.

@param ModelInformationInterface $information
@return ModelRepositoryInterface
Returns instance of a model repository for given model information .