public function replace($resources) { throw new BadMethodCallException('Lazy resource collections cannot be modified.'); }