/** * */ public function testIteratingAttributes() { $this->bag->add('foo', 'bar'); $this->bag->add('zee', 'bee'); foreach ($this->bag as $key => $value) { $this->assertEquals($value, $this->bag->get($key)); } }
/** * Get a list of all attributes names from the attribute bags. * * @return array */ public function attributes() { return array_keys($this->attributes->all()); }